/* Import Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Root variables for Islamic theme */
:root {
    --islamic-green-50: hsl(120, 50%, 97%);
    --islamic-green-100: hsl(120, 40%, 92%);
    --islamic-green-500: hsl(122, 39%, 33%);
    --islamic-green-600: hsl(120, 60%, 15%);
    --islamic-green-700: hsl(120, 100%, 8%);
    --islamic-gold-300: hsl(45, 100%, 64%);
    --islamic-gold-400: hsl(45, 100%, 57%);
    --islamic-gold-500: hsl(45, 100%, 50%);
    --islamic-gold-600: hsl(36, 100%, 50%);
    --cream: hsl(60, 56%, 91%);
}

/* Arabic font class */
.font-arabic {
    font-family: 'Amiri', serif !important;
}

/* Main container */
.tasbih-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cream) 0%, #ffffff 50%, var(--islamic-green-50) 100%);
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, hsla(122, 39%, 33%, 0.03) 10px, hsla(122, 39%, 33%, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, hsla(45, 100%, 50%, 0.02) 10px, hsla(45, 100%, 50%, 0.02) 20px);
    padding: 2rem 1rem;
}

.tasbih-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.tasbih-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tasbih-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--islamic-green-700);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tasbih-subtitle {
    color: var(--islamic-green-600);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tasbih-reset-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.tasbih-reset-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--islamic-gold-500);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.tasbih-reset-all-btn:hover {
    background-color: var(--islamic-gold-600);
}

/* Main Counter Display */
.tasbih-main-counter {
    text-align: center;
    margin-bottom: 3rem;
}

.tasbih-counter-display {
    display: inline-block;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, #ffffff 100%);
    border: 2px solid var(--islamic-gold-500);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tasbih-counter-display h2 {
    font-size: 1.5rem;
    color: var(--islamic-green-700);
    margin-bottom: 0.5rem;
}

.tasbih-total-count {
    font-size: 4rem;
    font-weight: bold;
    color: var(--islamic-green-600);
    margin-bottom: 0.5rem;
}

.tasbih-counter-breakdown {
    font-size: 0.875rem;
    color: var(--islamic-green-500);
}

/* Central Tasbih Button */
.tasbih-main-button-section {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.tasbih-main-button {
    width: 12rem;
    height: 12rem;
    background: linear-gradient(135deg, var(--islamic-green-500), var(--islamic-green-700));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px hsla(122, 39%, 33%, 0.3), 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tasbih-main-button:hover {
    background: linear-gradient(135deg, var(--islamic-green-600), var(--islamic-green-700));
    box-shadow: 0 0 30px hsla(122, 39%, 33%, 0.5), 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.tasbih-main-button:active {
    transform: translateY(0) scale(0.95);
}

.tasbih-button-content {
    text-align: center;
}

.tasbih-hand-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.tasbih-button-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.tasbih-button-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Azkar Grid */
.tasbih-azkar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tasbih-azkar-item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 2px solid var(--islamic-green-100);
    transition: all 0.3s ease;
}

.tasbih-azkar-item:hover {
    border-color: hsla(122, 39%, 33%, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tasbih-azkar-content {
    text-align: center;
    margin-bottom: 1rem;
}

.tasbih-azkar-counter {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--cream) 0%, #ffffff 100%);
    border: 2px solid var(--islamic-gold-500);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.tasbih-individual-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--islamic-green-600);
}

.tasbih-azkar-arabic {
    font-size: 2rem;
    font-weight: bold;
    color: var(--islamic-green-700);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tasbih-azkar-transliteration {
    color: var(--islamic-green-600);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.tasbih-azkar-meaning {
    color: var(--islamic-green-500);
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Action buttons */
.tasbih-increment-btn {
    width: 100%;
    padding: 1rem;
    background-color: #0ec244;
    color: #e4e5e6;
    border: none;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tasbih-increment-btn:hover {
    background-color: var(--islamic-green-600);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px) scale(1.02);
}

.tasbih-increment-btn:active {
    transform: translateY(0) scale(0.98);
}

.tasbih-reset-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: #fcd14e;
    color: white;
    border: 1px solid var(--islamic-gold-500);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.tasbih-reset-btn:hover {
    background-color: var(--islamic-gold-600);
    border-color: var(--islamic-gold-600);
}

.plus-icon, .reset-icon {
    font-weight: bold;
}

/* Footer */
.tasbih-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--islamic-green-100);
    margin-top: 2rem;
}

.tasbih-footer-arabic {
    color: var(--islamic-green-600);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tasbih-footer-translation {
    font-size: 0.875rem;
    color: var(--islamic-green-500);
    margin-bottom: 0.5rem;
}

.tasbih-footer-reference {
    font-size: 0.75rem;
    color: var(--islamic-green-500);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tasbih-container {
        padding: 1rem 0.5rem;
    }
    
    .tasbih-title {
        font-size: 2.5rem;
    }
    
    .tasbih-total-count {
        font-size: 3rem;
    }
    
    .tasbih-main-button {
        width: 10rem;
        height: 10rem;
    }
    
    .tasbih-hand-icon {
        font-size: 3rem;
    }
    
    .tasbih-button-text {
        font-size: 1.25rem;
    }
    
    .tasbih-azkar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tasbih-azkar-arabic {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .tasbih-title {
        font-size: 2rem;
    }
    
    .tasbih-total-count {
        font-size: 2.5rem;
    }
    
    .tasbih-main-button {
        width: 8rem;
        height: 8rem;
    }
    
    .tasbih-hand-icon {
        font-size: 2.5rem;
    }
    
    .tasbih-button-text {
        font-size: 1rem;
    }
}

/* Animation for button press effect */
.tasbih-button-pressed {
    animation: buttonPress 0.2s ease-out;
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}