@import 'base.css';

/* ================================
   Page Header
   ================================ */

.page-header {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    position: relative;
    height: 7rem;
}

.page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* ================================
   Editorial Section
   ================================ */

.editorial-section {
    padding: 5rem 0;
    background: #faf9f7;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
    border: none;
    display: block;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* ================================
   Editor Card
   ================================ */

.editor-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.editor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(95, 87, 55, 0.15);
    border-color: var(--gold-accent);
}

/* Editor Card Header */
.editor-card-header {
    background: var(--gradient);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.editor-card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--primary-color);
}

/* Editor Avatar */
.editor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    color: #fff;
    overflow: hidden;
}

.editor-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.editor-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Editor Card Body */
.editor-card-body {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.editor-description {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.editor-description i {
    color: var(--gold-accent);
    margin-top: 0.35rem;
    flex-shrink: 0;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.read-more-btn:hover {
    background: rgba(218, 165, 32, 0.1);
    color: var(--primary-color);
}

.read-more-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(-4px);
}

/* ================================
   Editor Modal
   ================================ */

.editor-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.editor-modal-header {
    background: var(--gradient);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: none;
}

.editor-modal-header .modal-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.modal-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.modal-avatar .avatar-img-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.editor-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.editor-full-description {
    color: #444;
    font-size: 1rem;
    line-height: 2;
    text-align: justify;
}

.editor-full-description p {
    margin-bottom: 1rem;
}

.editor-full-description ul,
.editor-full-description ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.editor-full-description li {
    margin-bottom: 0.5rem;
}

/* Modal scrollbar */
.editor-modal-body::-webkit-scrollbar {
    width: 5px;
}

.editor-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.editor-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 10px;
}

/* Modal backdrop */
.modal.fade .editor-modal {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .editor-modal {
    transform: scale(1) translateY(0);
}

.editor-department {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0ebe3;
}

.editor-department i {
    color: var(--secondary-color);
}

.editor-bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.editor-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f6f3;
    color: var(--primary-color);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0ebe3;
}

.editor-email:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    text-decoration: none;
}

.editor-email i {
    font-size: 0.85rem;
}

/* ================================
   Chief Editor Special Style
   ================================ */

.chief-editor .editor-card {
    border: 2px solid var(--gold-accent);
    position: relative;
}

.chief-editor .editor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    animation: shimmer 3s ease-in-out infinite;
}

.chief-editor .editor-card-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
}

.chief-editor .editor-card-header::after {
    border-top-color: #d4af37;
}

.chief-editor .editor-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
}

.chief-editor .editor-name {
    color: #3d3d3d;
}

.chief-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    color: #3d3d3d;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* ================================
   Empty State
   ================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    color: #666;
    margin: 0;
}

/* ================================
   Animations
   ================================ */

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 992px) {
    .editorial-section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
        margin-top: 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .editorial-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .editor-card-header {
        padding: 1.5rem;
    }

    .editor-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .editor-name {
        font-size: 1.2rem;
    }

    .editor-card-body {
        padding: 2rem 1rem 1.5rem;
    }

    .editor-bio {
        font-size: 0.85rem;
        min-height: auto;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 180px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .editorial-section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .editor-card-header {
        padding: 1.25rem;
    }

    .editor-avatar {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .editor-name {
        font-size: 1.1rem;
    }

    .editor-description,
    .editor-department {
        font-size: 0.9rem;
    }

    .editor-email {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .chief-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.75rem;
    }
}
.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.position-item,
.contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-item:last-child,
.contact-item:last-child {
    border-bottom: none;
}

.position-item strong,
.contact-item strong {
    color: #666;
    font-size: 0.9rem;
    min-width: 100px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

