/* assets/css/eventos.css */

:root {
    --global-palette1: #049f82;
    --global-palette2: #008f72;
    --global-palette3: #222222;
    --global-palette4: #353535;
    --global-palette5: #454545;
    --global-palette6: #676767;
    --global-palette7: #eeeeee;
    --global-palette8: #f7f7f7;
    --global-palette9: #ffffff;
    --primary-color: var(--global-palette1);
    --primary-light: #81C784;
    --primary-dark: var(--global-palette2);
    --text-dark: var(--global-palette3);
    --text-light: var(--global-palette6);
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--global-palette8);
    font-size: 17px;
    font-weight: 400;
}

/* Header Styles - Baseado no site original */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.site-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main-header-inner-wrap {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .brand img {
    max-width: 200px;
    height: auto;
    transition: var(--transition);
}

.site-branding .brand img:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
.main-navigation .primary-menu-container > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation .primary-menu-container > ul > li {
    position: relative;
    margin: 0;
}

.main-navigation .primary-menu-container > ul > li > a {
    padding: 0.6em calc(1.2em / 2);
    color: var(--global-palette5);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    font-size: 17px;
}

.main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--primary-color);
}

.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
    color: var(--global-palette3);
    position: relative;
}

.main-navigation .primary-menu-container > ul > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Main Content */
.content-area {
    margin-top: 5rem;
    margin-bottom: 5rem;
    background: var(--global-palette9);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Album Cards */
.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.album-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-image img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 159, 130, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.album-card:hover .album-overlay i {
    transform: scale(1);
}

.album-info {
    padding: 1.5rem;
    text-align: center;
}

.album-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.album-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Slideshow Modal */
.slideshow-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.slideshow-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10001;
}

.nav-btn:hover {
    background: rgba(4, 159, 130, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slide-container {
    max-width: 90%;
    max-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.slide-counter {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
}

.thumbnails-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    overflow-x: auto;
}

.thumbnails-grid {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Footer */
.bg-primary {
    background-color: var(--primary-color) !important;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Touch/Swipe Support */
.slide-container {
    touch-action: pan-y;
    user-select: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-container {
        padding: 0 1rem;
    }
    
    .content-area {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    
    .album-image {
        height: 200px;
    }
    
    .nav-btn {
        font-size: 1.5rem;
        padding: 10px 15px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
    
    .slide-counter {
        bottom: 100px;
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .thumbnails-container {
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    /* Mobile menu would go here if needed */
    .main-navigation .primary-menu-container > ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow);
        display: none;
    }
    
    .main-navigation .primary-menu-container > ul.show {
        display: flex;
    }
    
    .main-navigation .primary-menu-container > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation .primary-menu-container > ul > li > a {
        padding: 1rem;
        display: block;
    }
}

@media (max-width: 576px) {
    .content-area {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .album-info {
        padding: 1rem;
    }
    
    .album-title {
        font-size: 1.1rem;
    }
    
    .album-date {
        font-size: 0.8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}