/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8edeb 0%, #fae5e1 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
}

p {
    color: #333;
    font-weight: 400;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Verse card styling - glassmorphism effect */
.verse-card {
    border-radius: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    color: #000;
    position: relative;
    overflow: hidden;
}

.verse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.verse-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* Sanskrit text styling */
.sanskrit-text {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.5rem 0;
}

/* Translation text styling */
.translation-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.8rem;
    text-align: center;
}

/* Section styling */
.section-title {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

/* Language selector styling - pill shape */
.language-selector {
    margin-bottom: 2rem;
}

.language-selector .btn-group {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector .btn-group .btn {
    padding: 0.5rem 1.8rem;
    font-weight: 500;
    background-color: transparent;
    color: #555;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.language-selector .btn-group .btn.active {
    background-color: #7755A1;
    color: white;
    box-shadow: 0 4px 10px rgba(119, 85, 161, 0.3);
}

/* Affirmation styling - soft highlighted box */
.alert-info {
    background-color: rgba(119, 85, 161, 0.08);
    border: none;
    color: #7755A1;
    font-weight: 500;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(119, 85, 161, 0.1);
    position: relative;
    overflow: hidden;
}

.alert-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #7755A1;
    border-radius: 2px;
}

/* Header styling */
.app-title {
    color: #7755A1;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    font-size: 2.5rem;
}

.lead {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Meaning section styling */
#meaning {
    color: #333;
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.05rem;
    padding: 0 0.5rem;
}

/* Life tip styling */
#life-tip {
    font-style: italic;
    color: #666;
    padding: 0 0.5rem;
}

/* Refresh button styling - rounded with hover effect */
#refresh-btn {
    background-color: #7755A1;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(119, 85, 161, 0.2);
    margin-top: 1rem;
}

#refresh-btn:hover {
    background-color: #664992;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(119, 85, 161, 0.3);
}

#refresh-btn:active {
    transform: translateY(0);
}

/* Footer styling - low opacity */
footer {
    margin-top: auto;
    padding: 1.5rem 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

footer:hover {
    opacity: 1;
}

.text-muted {
    color: #777 !important;
    font-size: 0.9rem;
}

/* Loading spinner */
.spinner-border {
    color: #7755A1 !important;
    width: 3rem;
    height: 3rem;
}

/* Main content area */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sanskrit-text {
        font-size: 1.8rem;
    }
    
    .translation-text {
        font-size: 1.1rem;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .verse-card {
        padding: 25px;
    }
    
    .language-selector .btn-group .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .sanskrit-text {
        font-size: 1.5rem;
    }
    
    .verse-card {
        padding: 20px;
    }
}
