/* UFBL Modern Stylesheet */

:root {
    --primary-color: #E30613;
    --secondary-color: #1A1A1A;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --header-bg: #FFFFFF;
    --footer-bg: #1A1A1A;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Header Styles */
header {
    background: var(--footer-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--footer-text-color);
    font-weight: 400;
    font-family: var(--font-family);
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--footer-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    z-index: 999;
}

nav.active {
    right: 0;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 20px;
    align-items: flex-start;
}

nav a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    display: block;
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

nav a.btn-primary {
    background: var(--button-bg-color);
    color: var(--button-text-color);
}

nav a.btn-primary:hover {
    background: var(--button-hover-color);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 60px;
    color: var(--text-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .hero-subtitle {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero p {
    font-size: 20px;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn {
    background: var(--button-bg-color);
    color: var(--button-text-color);
    border: 2px solid var(--button-bg-color);
}

.hero .btn:hover {
    background: var(--button-hover-color);
    border-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Content Sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.clickable-card {
    cursor: pointer;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(227, 6, 19, 0.2);
}

.clickable-card:active {
    transform: translateY(-3px);
}

.card-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 16px auto;
    display: block;
}

/* Thumbnail Styles */
.card-image.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 16px auto;
    display: block;
}

.card-image.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

/* Centered Card Layout */
.card-centered .card-content {
    text-align: center;
}

.card-centered .card-title {
    margin-bottom: 20px;
}

.content-details-btn {
    margin-top: 15px;
}

.card-date {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.card-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-color);
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.newsletter h2 {
    font-family: var(--heading-font);
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .newsletter {
        padding: 40px 20px;
    }
    
    .newsletter h2 {
        font-size: 24px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #C20510;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: grab;
    transition: transform 0.1s ease;
    transform-origin: center center;
}

#lightbox-image.zoomed {
    cursor: grabbing;
}

#lightbox-image.dragging {
    cursor: grabbing;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    font-family: var(--heading-font);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Lightbox Styles */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 0 20px;
    }
    
    #lightbox-image {
        max-height: 70vh;
    }
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.section-footer .btn {
    padding: 14px 40px;
    font-size: 16px;
}

/* Event Tabs */
.event-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.event-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.event-tab:hover {
    color: var(--primary-color);
}

.event-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-count {
    font-weight: 400;
    font-size: 14px;
    color: #999;
}

/* Event Content */
.event-content {
    display: none;
}

.event-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state p {
    font-size: 18px;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.event-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.event-item.past-event {
    opacity: 0.8;
}

.event-item-header {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.event-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.event-item-info {
    flex: 1;
}

.event-item-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-item-title {
    font-family: var(--heading-font);
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.event-item-location {
    color: #666;
    font-size: 14px;
}

.event-item-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.event-details-btn {
    flex-shrink: 0;
}

/* Event Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.event-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.event-modal-info {
    padding: 40px;
}

.event-modal-info h2 {
    font-family: var(--heading-font);
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.event-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--card-border-color);
}

.event-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 16px;
}

.event-modal-meta-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.event-modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Responsive Event Pages */
@media (max-width: 768px) {
    .event-tabs {
        flex-direction: column;
    }
    
    .event-tab {
        text-align: center;
    }
    
    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-item-header {
        flex-direction: column;
        width: 100%;
    }
    
    .event-item-image {
        width: 100%;
        height: 200px;
    }
    
    .event-details-btn {
        width: 100%;
    }
    
    .event-modal-info {
        padding: 30px 20px;
    }
    
    .event-modal-info h2 {
        font-size: 24px;
    }
    
    .event-modal-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-footer .btn {
        width: 100%;
    }
}
