/**
 * Author & Corner Articles CSS
 * Consolidates styles from: author panel, author public pages, corner-articles, dashboard_menu
 */

/* ========== Auth Account Author - Form (Create/Edit) ========== */
.author-post-form-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(107, 114, 128, 0.08);
    padding: 2rem;
}
.author-post-tabs {
    border: none;
    gap: 0;
    background: #F5F7FA;
    border-radius: 12px;
    padding: 4px;
    display: inline-flex;
}
.author-post-tabs .nav-link {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    color: #64748B;
    transition: all 0.25s ease;
}
.author-post-tabs .nav-link:hover {
    color: #4F46E5;
    background: rgba(99, 102, 241, 0.08);
}
.author-post-tabs .nav-link.active {
    background: #fff;
    color: #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}
.author-post-tab-content {
    margin-top: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #FAFBFF 0%, #F8F9FC 100%);
    border-radius: 14px;
    border: 1px solid #E8EEF5;
}
.author-post-form-group label {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}
.author-post-form-group .form-control {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.author-post-form-group .form-control:focus {
    border-color: #A5B4FC;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}
.author-post-form-group textarea.form-control:not([id^="content"]) {
    resize: vertical;
    min-height: 90px;
}
.author-post-editor-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}
.tox-tinymce {
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
#image-previews img,
#image-previews-edit img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 140px;
    height: 140px;
    object-fit: cover;
}
#image-previews .position-relative {
    transition: transform 0.2s;
}
#image-previews .position-relative:hover {
    transform: translateY(-2px);
}
.author-image-upload-zone {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F5F3FF 100%);
    border: 2px dashed #C7D2FE;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.author-image-upload-zone:hover,
.author-image-upload-zone.has-files {
    border-color: #A5B4FC;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #E0E7FF 100%);
}
.author-image-upload-zone input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.author-image-upload-zone .upload-icon {
    font-size: 2.5rem;
    color: #A5B4FC;
    margin-bottom: 0.75rem;
    display: block;
}
.author-image-upload-zone .upload-text {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.author-image-upload-zone .upload-btn-inner {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.author-image-upload-zone:hover .upload-btn-inner {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.author-image-upload-zone .upload-hint {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.author-image-upload-zone .file-count {
    color: #4F46E5;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}
.author-current-images {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.author-current-images:hover {
    transform: translateY(-2px);
}
.author-poll-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F5F3FF 100%);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.author-poll-card.expanded {
    padding: 2rem;
}
.author-poll-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.author-poll-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    color: #fff;
}
.author-poll-add-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #4F46E5;
    border: 1px dashed #A5B4FC;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.author-poll-add-option-btn:hover:not(:disabled) {
    background: #EEF2FF;
    border-color: #4F46E5;
}
.author-poll-add-option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: solid;
}
.author-poll-option-input {
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
}
.author-poll-tabs {
    border-radius: 12px 12px 0 0;
    border: 1px solid #E8EEF5;
    border-bottom: none;
}
.author-poll-tab-content {
    background: linear-gradient(135deg, #FAFBFF 0%, #F8F9FC 100%);
    border-radius: 0 0 14px 14px;
    border: 1px solid #E8EEF5;
    border-top: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

/* ========== Auth Account Author - About Me ========== */
.about-me-card {
    background: linear-gradient(135deg, #fff 0%, #F8FAFC 100%);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.06);
    border: 1px solid #E8EEF5;
    margin-bottom: 1.5rem;
}
.about-me-card label {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}
.about-me-bio-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}
.about-me-bio-wrap .tox-tinymce {
    border-radius: 10px !important;
    border: none !important;
}
.social-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}
.social-link-row .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.social-link-row .social-icon.instagram {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    color: #fff;
}
.social-link-row .social-icon.facebook {
    background: #1877F2;
    color: #fff;
}
.social-link-row .social-icon.twitter {
    background: #000;
    color: #fff;
}
.social-link-row .social-icon.linkedin {
    background: #0A66C2;
    color: #fff;
}
.social-link-row input {
    flex: 1;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.social-link-row input:focus {
    border-color: #A5B4FC;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    outline: none;
}
.social-link-row .btn-remove {
    color: #94A3B8;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 6px;
}
.social-link-row .btn-remove:hover {
    color: #ef4444;
    background: #FEF2F2;
}
.social-add-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 2px dashed #C7D2FE;
    border-radius: 10px;
}
.social-add-box select {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    max-width: 180px;
}
.social-add-box input {
    flex: 1;
    min-width: 200px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.social-add-box .btn-add {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}
.social-add-box .btn-add:hover {
    opacity: 0.95;
}
.btn-save-about {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-save-about:hover {
    color: #fff;
    transform: translateY(-1px);
}
.about-page-link {
    padding: 0.75rem 1rem;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.about-page-link:hover {
    background: #E0E7FF;
    color: #4338ca;
}

/* ========== Auth Account Author - Articles Index ========== */
.author-post-card {
    background: linear-gradient(135deg, #fff 0%, #F8FAFC 100%);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.06);
    margin-bottom: 1.25rem;
    border: 1px solid #E8EEF5;
    transition: all 0.3s ease;
}
.author-post-card:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    border-color: #D4DBF0;
}
.author-post-card .post-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}
.author-post-card .post-title a:hover {
    color: #4F46E5;
}
.author-post-card .post-meta {
    color: #64748B;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.author-post-card .post-excerpt {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.author-post-images-h {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}
.author-post-images-h img {
    max-height: 100px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.author-post-images-h img:hover {
    transform: translateY(-2px);
}
.author-post-card .badge-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}
.author-post-card .badge-approved {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
}
.author-post-card .badge-rejected {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}
.author-post-card .badge-pending {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
}
.author-post-card .btn-edit-soft {
    padding: 0.4rem 0.9rem;
    background: #fff;
    color: #4F46E5;
    border: 1px solid #A5B4FC;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.author-post-card .btn-edit-soft:hover {
    background: #EEF2FF;
    border-color: #4F46E5;
    color: #4338ca;
}
.author-post-card .btn-read-more {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}
.author-post-card .btn-read-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: #fff;
}
.author-post-card .alert-rejection {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FECACA;
    border-radius: 10px;
    color: #991B1B;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}
.author-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}
.author-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: #fff;
}
.author-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-radius: 14px;
    border: 1px dashed #C7D2FE;
}
.author-empty-state i {
    color: #A5B4FC;
}

/* ========== Author Public Page (show.blade.php) ========== */
.author-page {
    padding: 2rem 0 4rem;
}
.author-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}
.author-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}
.author-name {
    font-weight: 600;
    color: #222;
}
.author-sidebar-menu {
    padding: 0;
    margin: 0;
}
.author-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.author-menu-link:hover {
    background: #f8f9fa;
    color: #333;
}
.author-menu-link.active {
    background: var(--theme-color, #0066cc);
    color: #fff;
}
.author-menu-link.active:hover {
    color: #fff;
    opacity: 0.95;
}
.author-sidebar-social .author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.author-sidebar-social .author-social-link:hover {
    background: var(--theme-color, #0066cc);
    color: #fff;
}
.author-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    min-height: 400px;
}
.author-bio-content {
    line-height: 1.8;
    color: #000 !important;
}
.author-bio-content p,
.author-bio-content ul,
.author-bio-content ol,
.author-bio-content li,
.author-bio-content span {
    color: #000;
}
.author-bio-content p {
    margin-bottom: 1rem;
}
.author-bio-content ul,
.author-bio-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.author-bio-content li {
    margin-bottom: 0.25rem;
}
.author-bio-content span[style*="font-size"] {
    display: inline;
}
.author-bio-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}
.author-bio-content table td,
.author-bio-content table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
}
.author-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
}
.author-articles-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}
.author-articles-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== Author Article Item (show + corner-articles) ========== */
.author-articles-wrap {
    padding-top: 0;
}
.author-article-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: block;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px 24px 0;
    position: relative;
    width: 100%;
}
.author-article-item:last-child {
    margin-bottom: 0;
}
.author-article-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.author-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}
.author-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.author-article-title a:hover {
    color: #333;
}
.author-article-date {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
.author-article-divider {
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 1.5rem;
    border: none;
}
.author-article-content-wrap {
    position: relative;
    max-height: 220px;
    overflow: hidden;
}
.author-article-content-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
}
.author-article-content {
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.75;
}
.author-article-content p {
    margin-bottom: 1rem;
}
.author-article-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ed1d24;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(237, 29, 36, 0.3);
    color: #fff;
    font-size: 16px;
    line-height: 50px;
    padding: 0 1.25rem;
    width: 250px;
    text-decoration: none;
    border: none;
}
.author-article-read-btn:hover {
    color: #fff;
    box-shadow: 0 6px 24px rgba(237, 29, 36, 0.4);
}
.author-article-read-btn .arr {
    margin-left: 0.35rem;
}
.author-article-btn-wrap {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 0 28px;
}

/* ========== Author Post Detail (post_show.blade.php) ========== */
.author-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}
.author-post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.author-post-content {
    line-height: 1.8;
    color: #333;
}
.author-post-content p,
.author-post-content ul,
.author-post-content ol,
.author-post-content li {
    margin-bottom: 1rem;
}
.author-post-images-linkedin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0;
}
.author-post-images-linkedin img {
    max-height: 300px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}
.author-post-images-linkedin a:hover img {
    opacity: 0.9;
}
.author-poll-box {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border-radius: 14px;
    padding: 1.75rem;
    margin-top: 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.author-poll-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #1a1a2e;
}
.author-poll-option {
    padding: 0.5rem 0;
}
.author-poll-option-vote {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.author-poll-option-vote:hover {
    border-color: var(--theme-color, #0066cc);
    background: #f8fafc;
}
.author-poll-result-row {
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    position: relative;
}
.author-poll-result-row.voted {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}
.author-poll-result-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
}
.author-poll-result-label {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 0.75rem;
}
.author-poll-result-row.voted .author-poll-result-label {
    color: #1e40af;
    font-weight: 600;
}
.author-poll-result-row.leading .author-poll-result-label {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.author-poll-result-row.leading .author-poll-result-voted {
    background: rgba(255,255,255,0.95);
    color: #1e40af;
}
.author-poll-result-voted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
    font-size: 0.65rem;
    margin-right: 0.5rem;
}
.author-poll-result-bar-wrap {
    flex: 1;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #e2e8f0;
    z-index: 0;
}
.author-poll-result-row.voted .author-poll-result-bar-wrap {
    background: rgba(59, 130, 246, 0.15);
}
.author-poll-result-bar {
    height: 100%;
    border-radius: 0;
    transition: width 0.4s ease;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}
.author-poll-result-bar.leading {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
}
.author-poll-result-bar.other {
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}
.author-poll-result-percent {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 600;
    background: #1e293b;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.author-poll-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========== Share Buttons (share_buttons.blade.php) ========== */
.author-share-wrap {
    border-color: #E8EEF5 !important;
}
.author-share-label {
    font-weight: 500;
    color: #64748B;
    font-size: 0.9rem;
}
.author-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.author-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    color: #fff;
}
.author-share-whatsapp {
    background: #25D366;
}
.author-share-linkedin {
    background: #0A66C2;
}
.author-share-twitter {
    background: #000;
}
.author-share-facebook {
    background: #1877F2;
}
.author-share-copy {
    background: #64748B;
    padding: 0.5rem 1rem;
    width: auto;
}
.author-share-copy:hover {
    background: #475569;
}

/* ========== Corner Articles ========== */
.corner-articles-wrap {
    padding-top: 0;
}
.corner-article-card {
    margin-bottom: 24px;
    padding-bottom: 0;
}
.corner-article-card:last-child {
    margin-bottom: 0;
}
.corner-article-header {
    margin-bottom: 1rem;
}
.corner-article-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}
.corner-article-author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}
@media (min-width: 992px) {
    .corner-article-author-name {
        font-size: 1.4rem;
    }
}
.corner-article-author-name:hover {
    color: #333;
    text-decoration: underline;
}
.corner-article-author-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}
.corner-article-gallery-wrap,
.author-post-gallery-wrap {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.author-post-gallery-wrap .author-post-images-linkedin {
    margin: 0;
}
/* 1 görsel: full width, kaydırma yok */
.corner-article-gallery-wrap.gallery-count-1 .corner-article-lightbox {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0;
    width: 100%;
}
.corner-article-gallery-wrap.gallery-count-1 .corner-article-lightbox a {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}
.corner-article-gallery-wrap.gallery-count-1 .corner-article-lightbox img {
    width: 100%;
    max-width: 100% !important;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}
/* 2 görsel: yan yana, kaydırma yok */
.corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
}
.corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox a {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
}
.corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox img {
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    object-fit: cover;
}
/* Mobil/tablet: 2 ve daha fazla görsel - yan yana, peeking (devamı belli) - feed-items + post_show */
@media (max-width: 991px) {
    .corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox,
    .corner-article-gallery-wrap.gallery-count-3plus .corner-article-lightbox,
    .author-post-gallery-wrap.gallery-count-2 .corner-article-lightbox,
    .author-post-gallery-wrap.gallery-count-3plus .corner-article-lightbox {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox a,
    .corner-article-gallery-wrap.gallery-count-3plus .corner-article-lightbox a,
    .author-post-gallery-wrap.gallery-count-2 .corner-article-lightbox a,
    .author-post-gallery-wrap.gallery-count-3plus .corner-article-lightbox a {
        flex: 0 0 78%;
        min-width: 78%;
        scroll-snap-align: start;
    }
    .corner-article-gallery-wrap.gallery-count-2 .corner-article-lightbox img,
    .corner-article-gallery-wrap.gallery-count-3plus .corner-article-lightbox img,
    .author-post-gallery-wrap.gallery-count-2 .corner-article-lightbox img,
    .author-post-gallery-wrap.gallery-count-3plus .corner-article-lightbox img {
        width: 100%;
        max-width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
}
.corner-article-gallery-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.corner-article-gallery-nav:hover {
    background: rgba(0,0,0,0.7);
    color: #fff;
}
.corner-article-gallery-prev {
    left: 8px;
}
.corner-article-gallery-next {
    right: 8px;
}
@media (min-width: 992px) {
    .corner-article-gallery-nav {
        display: flex;
    }
}
@media (max-width: 991px) {
    .corner-article-gallery-nav {
        display: none !important;
    }
}
.corner-article-lightbox {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 0 0 8px;
}
.corner-article-lightbox a {
    flex: 0 0 auto;
}
.corner-article-lightbox img {
    max-height: 220px;
    max-width: 320px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}
.corner-article-lightbox a:hover img {
    opacity: 0.9;
}
@media (min-width: 992px) {
    .corner-article-lightbox img {
        max-height: 280px;
        max-width: 380px;
    }
}
@media (max-width: 991px) {
    .corner-article-lightbox img {
        max-height: 220px;
        max-width: min(85vw, 320px);
    }
    .corner-article-gallery-wrap.gallery-count-1 .corner-article-lightbox img {
        max-width: 100% !important;
    }
}
.corner-articles-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2rem;
    color: #6b7280;
    font-size: 1rem;
}
.corner-articles-preloader .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* ========== Dashboard Menu - Profile Photo Modal (author only) ========== */
.author-profile-photo-modal .modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.author-profile-photo-modal .modal-header {
    background: #1a1a1a;
    padding: 1rem 1.25rem;
}
.author-profile-photo-modal .modal-title {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.author-profile-photo-modal .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.author-profile-photo-modal .btn-close-white:hover {
    opacity: 1;
}
.author-profile-photo-modal .modal-body {
    background: #222;
    padding: 2rem 1.5rem;
}
.author-profile-photo-modal .author-photo-placeholder {
    width: 180px;
    height: 180px;
    background: #3a3a3a !important;
    border: none;
}
.author-profile-photo-modal .author-photo-placeholder--empty img {
    filter: brightness(0.5) contrast(0.9);
}
.author-profile-photo-modal .modal-footer.author-profile-photo-actions {
    background: #2d2d2d;
    padding: 1.25rem 1.5rem;
    gap: 3rem;
    border-top: 1px solid #353535;
}
.author-profile-photo-modal .author-photo-add-btn,
.author-profile-photo-modal .author-photo-delete-btn {
    color: rgba(255,255,255,0.92) !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.author-profile-photo-modal .author-photo-add-btn:hover,
.author-profile-photo-modal .author-photo-delete-btn:hover {
    opacity: 1;
    color: #fff !important;
}
.author-profile-photo-modal .author-photo-add-btn i,
.author-profile-photo-modal .author-photo-delete-btn i {
    font-size: 1.25rem;
    font-weight: 300;
}
.author-profile-photo-modal .author-photo-add-btn span,
.author-profile-photo-modal .author-photo-delete-btn span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.author-profile-photo-modal .author-photo-preview-wrap {
    display: block;
}
.author-profile-photo-modal .author-photo-crop-wrap {
    display: none;
}
.author-profile-photo-modal.author-photo-editing .author-photo-preview-wrap {
    display: none;
}
.author-profile-photo-modal.author-photo-editing .author-photo-crop-wrap {
    display: block;
}
.author-profile-photo-modal .author-photo-edit-controls {
    display: none;
}
.author-profile-photo-modal.author-photo-editing .author-photo-edit-controls {
    display: block;
}
.author-profile-photo-modal .author-cropper-wrap .cropper-view-box,
.author-profile-photo-modal .author-cropper-wrap .cropper-face {
    border-radius: 50%;
    outline: none !important;
    box-shadow: none !important;
}
.author-profile-photo-modal .author-cropper-wrap .cropper-drag-box {
    background: rgba(0,0,0,0.5);
}
.author-profile-photo-modal .author-cropper-wrap .cropper-point {
    opacity: 0;
}
.author-profile-photo-modal .author-cropper-wrap .cropper-line {
    background: transparent;
}

/* ========== Responsive - Author Article / Corner Articles ========== */
@media (max-width: 767px) {
    .author-article-title,
    .author-article-date {
        text-align: center;
    }
    .author-article-content {
        text-align: left;
    }
    .author-article-content-wrap {
        max-height: 360px;
    }
    .corner-article-header .d-flex {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* ========== Responsive - Author Post Detail ========== */
@media (max-width: 991px) {
    .author-page {
        overflow-x: hidden;
        padding: 1rem 0 3rem;
    }
    .author-page .container {
        overflow-x: hidden;
        max-width: 100%;
    }
    .author-page .row {
        margin-left: 0;
        margin-right: 0;
    }
    .author-content-card {
        padding: 1.25rem;
        overflow-x: hidden;
    }
    .author-post-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .author-post-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    .author-post-images-linkedin {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        margin: 1rem 0;
        padding: 0 0 8px;
        gap: 10px;
    }
    .author-post-images-linkedin a {
        flex: 0 0 auto;
    }
    .author-post-images-linkedin img {
        max-height: 220px;
        max-width: min(85vw, 320px);
        width: auto;
    }
}

/* ========== GLightbox Mobil ========== */
@media (max-width: 767px) {
    .gslide-description,
    .gslide-title {
        display: none !important;
    }
    .glightbox-container {
        touch-action: pan-x pan-y pinch-zoom !important;
    }
    .glightbox-container .gslide {
        overflow: visible !important;
        touch-action: pan-x pan-y !important;
    }
    .glightbox-container .gslide-image {
        touch-action: pan-x pan-y !important;
    }
    .glightbox-container .gslide-media,
    .glightbox-container .gslide-content {
        touch-action: pan-x pan-y !important;
        -webkit-user-select: none;
        user-select: none;
    }
    .gprev,
    .gnext {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        background: rgba(0,0,0,0.65) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99999 !important;
        opacity: 1 !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .gprev svg,
    .gnext svg {
        width: 22px !important;
        height: 22px !important;
    }
    .gprev {
        bottom: 24px !important;
        left: 20px !important;
        right: auto !important;
        top: auto !important;
    }
    .gnext {
        bottom: 24px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
    }
    .author-glightbox-nav-bottom,
    .corner-glightbox-nav-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        z-index: 99998;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        -webkit-tap-highlight-color: transparent;
    }
    .author-glightbox-nav-bottom.hidden,
    .corner-glightbox-nav-bottom.hidden {
        display: none !important;
    }
    .author-glightbox-nav-btn,
    .corner-glightbox-nav-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        border: 2px solid rgba(255,255,255,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }
    .author-glightbox-nav-btn:active,
    .corner-glightbox-nav-btn:active {
        background: rgba(255,255,255,0.4);
    }
}
