/* =========================================
   MAYOR PAGES STYLES
   Shared styles for all mayor/president pages
   ========================================= */

/* =========================================
   1. MAYOR SIDEBAR STYLES
   ========================================= */

.mayor-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Profile Card */
.mayor-profile-card {
    text-align: center;
    padding: 0;
}

.mayor-sidebar-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.mayor-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.mayor-sidebar-info {
    padding: 1.25rem 1rem 0.75rem;
    background: var(--primary-color);
    color: var(--text-white);
}

.mayor-sidebar-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-white);
}

.mayor-sidebar-title {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.mayor-sidebar-motto {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    padding: 1rem;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Social Links */
.mayor-sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--primary-color);
}

.mayor-sidebar-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mayor-sidebar-socials a:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation Card */
.mayor-nav-card {
    padding: 0;
}

.mayor-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.mayor-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.mayor-nav-link:last-child {
    border-bottom: none;
}

.mayor-nav-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.mayor-nav-link .arrow {
    margin-left: auto;
    font-size: 1rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.mayor-nav-link:hover {
    background: #f8fafc;
    padding-left: 1.5rem;
}

.mayor-nav-link:hover .arrow {
    transform: translateX(3px);
    opacity: 1;
}

.mayor-nav-link.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.mayor-nav-link.active i {
    color: var(--text-white);
}

.mayor-nav-link.active .arrow {
    opacity: 1;
}

/* =========================================
   2. MAYOR ARTICLE STYLES
   ========================================= */

.mayor-message-article {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

/* Inline Photo - Floated Right After 3 Paragraphs */
.mayor-inline-photo {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 25%;
}

.mayor-inline-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.mayor-message-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.mayor-message-text p {
    margin-bottom: 1.25rem;
}

.mayor-message-text h2,
.mayor-message-text h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.mayor-message-text ul,
.mayor-message-text ol {
    margin: 1rem 0 1rem 1.5rem;
}

.mayor-message-text li {
    margin-bottom: 0.5rem;
}

/* Signature */
.mayor-article-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
    text-align: right;
    clear: both;
}

.signature-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Great Vibes', cursive, var(--font-main);
    margin: 0 0 0.25rem 0;
}

.signature-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* =========================================
   3. VIDEO STYLES
   ========================================= */

/* Featured Video Section */
.featured-video-section {
    margin-bottom: 2rem;
}

.featured-video-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #1a1a2e 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.featured-video-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.featured-video-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.featured-video-content {
    position: relative;
    z-index: 1;
}

.featured-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-video-wrapper iframe,
.featured-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-video-info {
    color: var(--text-white);
    padding: 1.25rem 0.5rem 0.5rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.featured-badge i {
    font-size: 0.9rem;
}

.featured-video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.featured-video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.featured-date i {
    font-size: 1rem;
}

/* Other Videos Section */
.other-videos-section {
    margin-top: 2rem;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-subtitle i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* 3 Column Video Grid */
.video-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Original 2 Column Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-thumbnail iframe,
.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.video-date i {
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* =========================================
   5. PHOTO GALLERY STYLES
   ========================================= */

.photo-galleries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.photo-gallery-card {
    background: var(--bg-white);
    padding: 0.75rem;
    padding-bottom: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(-1deg);
}

.photo-gallery-card:nth-child(even) {
    transform: rotate(1deg);
}

.photo-gallery-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-cover {
    position: relative;
    overflow: hidden;
}

.gallery-cover>a>img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-cover:hover>a>img {
    transform: scale(1.05);
}

.gallery-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: var(--text-white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gallery-count i {
    font-size: 0.9rem;
}

.gallery-date {
    padding: 1rem 0.5rem;
    text-align: center;
}

.date-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* =========================================
   4. RESPONSIVE STYLES
   ========================================= */

@media (max-width: 992px) {
    .mayor-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .mayor-inline-photo {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .mayor-sidebar {
        order: -1;
    }

    .mayor-profile-card {
        display: flex;
        flex-wrap: wrap;
    }

    .mayor-sidebar-photo {
        width: 120px;
        height: 120px;
        aspect-ratio: auto;
        border-radius: 50%;
        margin: 1rem auto;
    }

    .mayor-sidebar-info {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .mayor-sidebar-name {
        font-size: 1.1rem;
    }

    .mayor-sidebar-motto {
        display: none;
    }

    .mayor-sidebar-socials {
        width: 100%;
        padding: 0.75rem;
    }

    .mayor-nav-card {
        display: none;
    }

    .mayor-message-article {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .mayor-sidebar-photo {
        width: 100px;
        height: 100px;
    }

    .mayor-sidebar-name {
        font-size: 1rem;
    }

    .mayor-sidebar-title {
        font-size: 0.8rem;
    }

    .mayor-message-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .signature-name {
        font-size: 1.25rem;
    }

    /* Video Grid Mobile */
    .video-grid-3 {
        grid-template-columns: 1fr;
    }

    .featured-video-bg {
        padding: 1rem;
    }

    .featured-video-title {
        font-size: 1rem;
    }


    .featured-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .video-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   6. CONTACT FORM STYLES
   ========================================= */

.contact-form-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 29, 85, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-group.full-width {
    grid-column: span 2;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-check input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit i {
    font-size: 1.25rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

.decoration-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 1rem auto 0;
    opacity: 0.5;
    border-radius: 2px;
}
