/*
  ==========================================================
  Tasbeeh - App Stylesheet
  ==========================================================

  @package    Tasbeeh
  @author     Muhammad Zaigham
  @copyright  © MZift.com (@itsmzift) All rights reserved.
  @license    Proprietary
  @version    1.0.0
  ==========================================================
*/

/* ======================================================= */
/* CSS CUSTOM PROPERTIES                                   */
/* ======================================================= */
:root {
    --mzift-glass-bg: rgba(255, 255, 255, 0.7);
    --mzift-glass-border: rgba(209, 215, 201, 0.5);
    --mzift-gold: #c4a35a;
    --mzift-gold-soft: #d4b87a;
}

.dark {
    --mzift-glass-bg: rgba(26, 36, 22, 0.7);
    --mzift-glass-border: rgba(45, 58, 36, 0.5);
}

/* ======================================================= */
/* GLASSMORPHISM                                           */
/* ======================================================= */
.mzift-glass {
    background: var(--mzift-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--mzift-glass-border);
}

/* ======================================================= */
/* ISLAMIC GEOMETRIC PATTERN (pure CSS, no images)         */
/* ======================================================= */
.mzift-pattern-islamic {
    background-image:
        linear-gradient(30deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(150deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(30deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(150deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(60deg, rgba(0,0,0,0.04) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04)),
        linear-gradient(60deg, rgba(0,0,0,0.04) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04));
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
    color: rgba(107, 127, 91, 0.06);
}

/* ======================================================= */
/* COUNTER CIRCLE                                          */
/* ======================================================= */
.mzift-counter-circle {
    width: 220px;
    height: 220px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 640px) {
    .mzift-counter-circle { width: 260px; height: 260px; }
}

/* Progress ring SVG */
.mzift-progress-ring circle {
    transition: stroke-dashoffset 0.25s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Tap pulse effect */
.mzift-pulse-tap {
    animation: mziftPulseTap 0.3s ease-out;
}

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

/* Completion glow */
.mzift-glow-gold {
    box-shadow: 0 0 30px rgba(196, 163, 90, 0.35), 0 0 60px rgba(196, 163, 90, 0.15);
}

.mzift-glow-sage {
    box-shadow: 0 0 20px rgba(107, 127, 91, 0.25), 0 0 40px rgba(107, 127, 91, 0.1);
}

/* ======================================================= */
/* PAGE ANIMATIONS                                         */
/* ======================================================= */
.mzift-fade-in {
    animation: mziftFadeIn 0.5s ease-out both;
}

.mzift-slide-up {
    animation: mziftSlideUp 0.5s ease-out both;
}

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

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

/* ======================================================= */
/* ARABIC TEXT                                             */
/* ======================================================= */
.mzift-arabic {
    font-family: 'Amiri', serif;
    direction: rtl;
    line-height: 1.8;
}

/* ======================================================= */
/* TAB INDICATOR                                           */
/* ======================================================= */
.mzift-tab-active {
    position: relative;
}

.mzift-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 9999px;
    background: #556a47;
}

.dark .mzift-tab-active::after {
    background: #8a9a7c;
}

/* ======================================================= */
/* SCROLLBAR (subtle)                                      */
/* ======================================================= */
.mzift-scroll::-webkit-scrollbar {
    height: 0;
    width: 0;
}

/* ======================================================= */
/* REDUCED MOTION                                          */
/* ======================================================= */
@media (prefers-reduced-motion: reduce) {
    .mzift-fade-in,
    .mzift-slide-up,
    .mzift-pulse-tap {
        animation: none !important;
    }

    .mzift-progress-ring circle {
        transition: none !important;
    }
}

/* ======================================================= */
/* PRINT                                                   */
/* ======================================================= */
@media print {
    nav, footer, .mzift-pattern-islamic,
    #mzift-mobile-menu, #mzift-mobile-overlay,
    #mzift-toast, #mzift-share-modal, #mzift-confirm,
    #mzift-install-banner { display: none !important; }

    body { background: white !important; color: black !important; }
}
