/* ============================================
   DeenNetwork — Tasbih Counter Styles
   ============================================ */

.tasbih-section {
    background: #121111;
    padding: 60px 0 80px;
}

/* Dhikr Selector */
.dhikr-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.dhikr-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.dhikr-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dhikr-btn.active {
    background: rgba(200, 170, 110, 0.15);
    border-color: rgba(200, 170, 110, 0.4);
}

.dhikr-arabic {
    display: block;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    direction: rtl;
}

.dhikr-eng {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Counter Display Area */
.tasbih-counter-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.current-dhikr-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-style: italic;
}

/* Progress Ring */
.counter-ring-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 30px;
    transition: transform 0.15s ease;
}

.counter-ring-wrap:active {
    transform: scale(0.95);
}

.counter-ring-wrap.pulse {
    animation: tapPulse 0.2s ease-out;
}

.counter-ring-wrap.completed {
    animation: completePulse 0.6s ease-out;
}

@keyframes tapPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes completePulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.progress-ring {
    width: 260px;
    height: 260px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: #c8aa6e;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.counter-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-number {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.counter-target {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.counter-tap-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Target Selector */
.target-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.target-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.target-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.target-btn.active {
    background: rgba(200, 170, 110, 0.2);
    border-color: #c8aa6e;
    color: #c8aa6e;
    font-weight: 600;
}

/* Controls */
.tasbih-controls {
    display: flex;
    gap: 15px;
}

.tasbih-ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tasbih-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Stats */
.tasbih-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tasbih-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.tasbih-stat-card .stat-icon {
    font-size: 1.8rem;
}

.tasbih-stat-card .stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.tasbih-stat-card .stat-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .dhikr-selector {
        gap: 8px;
    }

    .dhikr-btn {
        min-width: 0;
        padding: 10px 14px;
        flex: 1 1 calc(50% - 8px);
    }

    .dhikr-arabic {
        font-size: 1rem;
    }

    .counter-ring-wrap {
        width: 220px;
        height: 220px;
    }

    .progress-ring {
        width: 220px;
        height: 220px;
    }

    .progress-ring-bg,
    .progress-ring-fill {
        r: 100;
        cx: 110;
        cy: 110;
    }

    .counter-number {
        font-size: 3.5rem;
    }

    .tasbih-stats {
        grid-template-columns: 1fr;
    }

    .tasbih-stat-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dhikr-btn {
        flex: 1 1 calc(50% - 8px);
        padding: 8px 10px;
    }

    .dhikr-arabic {
        font-size: 0.9rem;
    }

    .dhikr-eng {
        font-size: 0.6rem;
    }

    .counter-ring-wrap {
        width: 200px;
        height: 200px;
    }

    .progress-ring {
        width: 200px;
        height: 200px;
    }

    .counter-number {
        font-size: 3rem;
    }

    .target-btn {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }
}