/* ==========================================================================
   1. Global Styles
   ========================================================================== */

:root {
    --primary-color: #3498db; /* Peter River */
    --secondary-color: #7f8c8d; /* Asbestos */
    --accent-color: #1abc9c; /* Turquoise */
    --background-color: #f8f9fa;
    --text-color: #34495e; /* Wet Asphalt */
    --border-color: #ecf0f1; /* Clouds */
    --hero-gradient-start: #3498db;
    --hero-gradient-end: #1abc9c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1:focus {
    outline: none;
    box-shadow: none;
}


/* ==========================================================================
   2. Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
}

.hero-section h1 {
    color: #ffffff;
}

.hero-section .lead {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.25rem;
}

.next-event-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.375rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.next-event-info .h5 {
    color: #ffffff;
    opacity: 0.8;
}

.next-event-info .h3 {
    color: #ffffff;
}

/* ==========================================================================
   3. Footer Section
   ========================================================================== */

.footer-section {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    padding: 0.3rem 0;
    border-top: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.85rem;
}

.footer-section p {
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.footer-section a:hover {
    opacity: 0.8;
}


/* ==========================================================================
   4. Card Styles
   ========================================================================== */

.card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.date-badge {
    min-width: 70px;
    background-color: var(--primary-color);
    box-shadow: none;
}


/* ==========================================================================
   5. Button Styles
   ========================================================================== */

.btn-primary {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary {
    border: 1px solid var(--accent-color);
    transition: all 0.2s ease-in-out;
    color: var(--accent-color);
}

.btn-primary:hover, .btn-outline-primary:hover {
    background: #16a085;
    border-color: #16a085;
    box-shadow: none;
}

.sessionize {
    height:20px;
    margin-top: -5px;
}


/* ==========================================================================
   6. Other Components
   ========================================================================== */

.map-container iframe {
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

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


/* ==========================================================================
   7. Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .next-event-info {
        margin-top: 2rem;
    }

    .date-badge {
        margin-right: 1rem !important;
    }

    .btn {
        width: 100%;
        margin-top: 1rem;
    }
}


/* ==========================================================================
   8. Loading Animation
   ========================================================================== */

#app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--primary-color);
    stroke-dasharray: calc(3.14159265 * 0.8 * 8rem);
    stroke-dashoffset: calc(3.14159265 * 0.8 * 8rem * (1 - 0.2));
    animation: 2s linear infinite loading-progress-animation;
}

.loading-progress-text {
    color: #afafaf;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

@keyframes loading-progress-animation {
    0% {
        stroke-dashoffset: calc(3.14159265 * 0.8 * 8rem * (1 - 0.2));
        transform: rotate(-90deg);
    }
    50% {
        stroke-dashoffset: calc(3.14159265 * 0.8 * 8rem * (1 - 0.8));
        transform: rotate(270deg);
    }
    100% {
        stroke-dashoffset: calc(3.14159265 * 0.8 * 8rem * (1 - 0.2));
        transform: rotate(990deg);
    }
}

/* ==========================================================================
   9. Speaker Section
   ========================================================================== */

.speaker-card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.speaker-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.speaker-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto 15px;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.speaker-card .card-title {
    color: var(--text-color);
}

.speaker-card .card-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.speaker-card .card-subtitle {
    font-size: 1rem;
}
