/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

p {
    font-family: "Gulzar", serif;
    font-weight: 400;
    font-style: normal;
}

body { background-color: #080710; }

/* ============================================================
   DECORATIVE BACKGROUND BLOBS
   ============================================================ */
.background {
    width: 430px; height: 520px;
    position: fixed;
    transform: translate(-50%, -50%);
    left: 50%; top: 50%;
}
.background .shape {
    height: 200px; width: 200px;
    position: absolute; border-radius: 50%;
}
.shape:first-child {
    background: linear-gradient(#006654, #00C49D);
    left: -80px; top: -80px;
}
.shape:last-child {
    background: linear-gradient(to right, #001B1B, #00C49D);
    right: -30px; bottom: -80px;
}

/* ============================================================
   MAIN SECTION & GLASS CARD
   ============================================================ */
.main { width: 100%; }

.main .glass-container {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%; top: 50%;
    width: 350px; height: 580px;
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.07);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    transition: background-color 0.4s ease;
}

/* Morning mode tint (default — subtle warm) */
.glass-container.mode-morning {
    background-color: rgba(255, 220, 100, 0.06);
}

/* Evening mode tint — deep blue/purple */
.glass-container.mode-evening {
    background-color: rgba(30, 20, 80, 0.25);
}

/* ============================================================
   MODE SWITCH ROW
   ============================================================ */
.mode-switch-wrapper {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mode-label {
    font-family: "Noto Nastaliq Urdu", serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    cursor: pointer;
}

.mode-label.label-active {
    color: #fff;
    font-weight: 700;
}

/* ── Toggle switch ── */
.toggle-switch { position: relative; display: inline-block; cursor: pointer; }
.toggle-switch input { display: none; }

.toggle-track {
    display: flex;
    align-items: center;
    width: 54px; height: 26px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f7c948, #ff8c00);
    position: relative;
    transition: background 0.4s ease;
    padding: 0 4px;
    justify-content: space-between;
}

/* Evening state */
.toggle-switch input:checked ~ .toggle-track {
    background: linear-gradient(135deg, #1a1060, #3a2a9a);
}

.icon-morning, .icon-evening {
    font-size: 13px;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.3s;
}

/* Hide evening icon when morning active */
.icon-evening { opacity: 0.4; }
.toggle-switch input:checked ~ .toggle-track .icon-morning { opacity: 0.4; }
.toggle-switch input:checked ~ .toggle-track .icon-evening { opacity: 1; }

.toggle-thumb {
    position: absolute;
    top: 3px;
    right: 3px; /* RTL: thumb starts on the right (= morning) */
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
}

/* Move thumb left when checked (= evening) */
.toggle-switch input:checked ~ .toggle-track .toggle-thumb {
    right: calc(100% - 23px);
}

/* ============================================================
   HEADING
   ============================================================ */
.main .glass-container h2 {
    font-family: "Noto Nastaliq Urdu", serif;
    font-weight: 700;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 48px;
}

.main .glass-container h2::after {
    content: "";
    height: 2px; width: 60%;
    position: absolute;
    background-color: #080710;
    left: 50%; transform: translateX(-50%);
    top: 60px;
}

/* ============================================================
   DHIKR NAME
   ============================================================ */
.dhikr-name {
    position: absolute;
    top: 108px;
    left: 0; right: 0;
    text-align: center;
    font-family: "Noto Nastaliq Urdu", serif;
    font-size: 12px;
    color: #00C49D;
    letter-spacing: 0.03em;
}

/* ============================================================
   CONTENT WRAPPER + SWIPE ARROWS
   ============================================================ */
.content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Swipe hint arrows — very subtle, decorative only */
.swipe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: rgb(255 255 255 / 61%);
    pointer-events: none; /* not clickable */
    user-select: none;
    line-height: 1;
    transition: color 0.3s;
}
.swipe-arrow.swipe-prev { right: 4px; } /* RTL: prev is on the right */
.swipe-arrow.swipe-next { left: 4px;  } /* RTL: next is on the left  */

/* Slightly brighter on hover for desktop */
.content-wrapper:hover .swipe-arrow {
    color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   DHIKR TEXT
   ============================================================ */
.main .glass-container .content {
    width: 100%;
    padding: 0 22px;
    margin-top: 10px;
    overflow: visible;
}

/* Slide animations */
@keyframes slideInRight  { from { opacity:0; transform: translateX(40px);  } to { opacity:1; transform: translateX(0); } }
@keyframes slideInLeft   { from { opacity:0; transform: translateX(-40px); } to { opacity:1; transform: translateX(0); } }
@keyframes slideOutLeft  { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(-40px); } }
@keyframes slideOutRight { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(40px);  } }

.content.slide-out-left  { animation: slideOutLeft  0.2s ease forwards; }
.content.slide-out-right { animation: slideOutRight 0.2s ease forwards; }
.content.slide-in-right  { animation: slideInRight  0.25s ease forwards; }
.content.slide-in-left   { animation: slideInLeft   0.25s ease forwards; }

.main .glass-container p {
    color: white;
    font-size: 22px;
    line-height: 1.8;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.main .glass-container p::before { content: "\""; color: #ffffff; }
.main .glass-container p::after  { content: "\""; color: #ffffff; }

/* ============================================================
   COUNTER
   ============================================================ */
.counter-wrap {
    position: absolute;
    bottom: 118px;
    left: 50%; transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.counter-nums {
    font-family: "Noto Nastaliq Urdu", serif;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    direction: ltr; /* keep numbers left-to-right */
}

/* Dot indicators */
.counter-dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 240px;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.2s;
}

.dot.dot-done {
    background: #00C49D;
}

/* ============================================================
   NEXT BUTTON
   ============================================================ */
.main .glass-container button.next {
    position: absolute;
    bottom: 22px;
    right: 20px; left: auto;
    padding: 5px 20px;
    border-radius: 25px;
    border: 1px solid #00C49D;
    background-color: #00C49D;
    color: white;
    font-size: 15px;
    width: 120px;
    font-family: "Noto Nastaliq Urdu", serif;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.main .glass-container button.next img { width: 35px; }

/* ============================================================
   SHARE WRAPPER
   ============================================================ */
.share-wrapper {
    position: absolute;
    bottom: 22px;
    left: 20px; right: auto;
}

.btn-share {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 18px; border-radius: 25px;
    border: 1px solid #006654;
    background-color: transparent;
    color: white; font-size: 15px; width: 120px;
    font-family: "Noto Nastaliq Urdu", serif;
    font-weight: 700; cursor: pointer;
    justify-content: center;
    transition: background-color 0.2s;
}
.btn-share:hover { background-color: #006654; }
.btn-share i { font-size: 16px; }

/* ============================================================
   SHARE POPUP
   ============================================================ */
.share-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%; transform: translateX(-50%) translateY(6px);
    width: 190px;
    background: rgb(0 199 162 / 9%);
    backdrop-filter: blur(14px);
    border: 1px solid #00c7a2;
    border-radius: 14px;
    padding: 12px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    z-index: 100;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.share-popup.open {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.popup-label {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-family: "Noto Nastaliq Urdu", serif;
}
.social-icons { display: flex; gap: 8px; justify-content: center; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: white; cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.social-btn:hover { transform: scale(1.15); filter: brightness(1.2); }
.social-btn.whatsapp  { background-color: #25D366; }
.social-btn.twitter   { background-color: #000000; }
.social-btn.facebook  { background-color: #1877F2; }
.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%,
        #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.share-popup::after {
    content: "";
    position: absolute;
    bottom: -10px; top: auto;
    left: 50%; transform: translateX(-50%);
    border-width: 0 7px 10px 7px;
    border-style: solid;
    border-color: transparent transparent rgb(0 199 162) transparent;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 360px) {
    .main .glass-container { width: 92vw; min-height: 480px; }
    .background { width: 92vw; }
}
