/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2C2C2C;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Elegant background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
    position: relative;
    width: 100%;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: all 0.4s ease;
    border-radius: 12px;
}

.logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #F4E4BC, #D4AF37);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Audio Controls - Elegant positioning */
.audio-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    animation: slideInRight 1s ease-out 0.5s both;
}

.audio-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.song-controls {
    display: flex;
    gap: 0.5rem;
}

.song-btn {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.song-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.volume-control {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

/* Main Content */
.main {
    width: 100%;
    max-width: 900px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Date Container */
.date-container {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.current-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    display: inline-block;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

/* Verse Card - More elegant */
.verse-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #F4E4BC, #D4AF37);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Verse Sections */
.verse-section {
    margin-bottom: 3rem;
    position: relative;
}

.verse-section:last-of-type {
    margin-bottom: 2.5rem;
}

.verse-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    position: relative;
}

.verse-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #F4E4BC);
    border-radius: 1px;
}

.verse-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    line-height: 1.6;
    color: #2C2C2C;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Spanish first styling */
.spanish-first {
    order: 1;
}

.english-second {
    order: 2;
}

/* Reference Container */
.reference-container {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.verse-reference {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #6C757D;
    margin: 0.5rem 0;
}

.spanish-ref-first {
    order: 1;
}

.english-ref-second {
    order: 2;
}

.ref-label {
    color: #D4AF37;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Reflection Container */
.reflection-container {
    margin-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.1);
    padding-top: 2rem;
}

.reflection-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.reflection-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.reflection-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reflection-btn:hover::before {
    left: 100%;
}

.reflection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.spanish-btn {
    order: 1;
}

.english-btn {
    order: 2;
}

.reflection-icon {
    transition: transform 0.3s ease;
}

.reflection-content {
    text-align: left;
}

.reflection-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.reflection-section.active {
    display: block;
}

.reflection-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reflection-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    text-align: justify;
}

.reflection-text p {
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #6C757D;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: #6C757D;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Social Media Section */
.social-media {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-radius: 24px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.social-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 2rem;
    position: relative;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F4E4BC, #D4AF37);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(228, 64, 95, 0.3);
}

.social-link.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.social-link.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .audio-controls {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 2rem;
        padding: 0.75rem 1rem;
    }
    
    .verse-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }
    
    .reflection-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .reflection-btn {
        min-width: 200px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .social-media {
        margin-top: 3rem;
        padding: 2rem 0;
    }
    
    .social-title {
        font-size: 1.5rem;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .social-link {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .verse-card {
        padding: 2rem 1.5rem;
    }
    
    .reflection-section {
        padding: 1.5rem;
    }
    
    .current-date {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-media {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .social-container {
        padding: 0 1rem;
    }
    
    .social-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

