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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* Zikr Grid Layout */
.zikr-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Mobile: List View */
@media (max-width: 768px) {
    .zikr-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tablet: 2 Column Grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .zikr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 Column Grid */
@media (min-width: 1025px) {
    .zikr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Zikr Card Styles */
.zikr-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.zikr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.zikr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.zikr-card:hover::before {
    opacity: 1;
}

.zikr-card.active {
    border-color: #ffd700;
    position: relative;
    overflow: hidden;
    animation: glowPulse 2s ease-in-out infinite;
}

.zikr-card.active::before {
    opacity: 0.8;
}

.zikr-card.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700, #ff6b6b, #4ecdc4, #45b7d1, 
        #96ceb4, #ffeaa7, #fd79a8, #fdcb6e,
        #ffd700);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: movingBorder 3s ease infinite;
}

@keyframes movingBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 
                    0 0 60px rgba(255, 215, 0, 0.2),
                    0 15px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 
                    0 0 80px rgba(255, 215, 0, 0.3),
                    0 15px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Arabic Text */
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .arabic-text {
        font-size: 1.5rem;
    }
}

/* English Translation */
.english-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .english-text {
        font-size: 1rem;
    }
}

/* Audio Control Button */
.audio-control {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 14px 28px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-control::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.6s ease;
}

.audio-control:hover::before {
    left: 100%;
}

.audio-control:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.audio-control:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.audio-control.playing {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 193, 7, 0.3));
    border-color: rgba(255, 215, 0, 0.8);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.audio-control.playing:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 193, 7, 0.4));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.audio-control .icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.audio-control:hover .icon {
    transform: scale(1.1);
}

.audio-control .text {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Loading Spinner Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

/* SVG Icon Styles */
.audio-control svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.audio-control:hover svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Button States */
.audio-control:disabled {
    cursor: not-allowed;
    transform: none !important;
}

.audio-control:disabled:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Disclaimer Card */
.disclaimer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem auto 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.disclaimer-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.disclaimer-text a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.disclaimer-text a:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.disclaimer-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.disclaimer-note strong {
    color: #ffd700;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .zikr-card {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .audio-control {
        padding: 12px 24px;
        min-width: 100px;
    }
    
    .audio-control .text {
        font-size: 0.8rem;
    }
    
    .disclaimer-card {
        padding: 1.5rem;
        margin: 2rem auto 1rem;
    }
    
    .disclaimer-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .disclaimer-text,
    .disclaimer-note {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .disclaimer-card {
        margin: 2.5rem auto 1.5rem;
    }
    
    .disclaimer-text {
        font-size: 0.95rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.audio-control:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.zikr-card:focus {
    outline: 2px solid #ffd700;
    outline-offset: 4px;
}
