/**
 * =========================================================
 * Single Card Reading - CSS
 * Fullscreen + Sandwich Menu + Vertical Frame
 * =========================================================
 */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.scr-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    direction: rtl;
    background-color: #05080f;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   قاب عمودی ۴:۵ در مرکز مانیتور
   ========================================================= */
.scr-fullscreen-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100vh * 0.8);
    max-height: 100vh;
    aspect-ratio: 4 / 5;
    margin: 0 auto;

    background-image: url('../../assets/images/bg/single-card-reading-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0a0f1d;
    overflow: hidden;

    box-shadow: 0 0 80px rgba(0,0,0,.9);
}

@media (max-width: 768px) {
    .scr-fullscreen-container {
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: auto;
        height: 100%;
    }
}

/* =========================================================
   Sandwich Menu
   ========================================================= */
.scr-menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(10,15,29,.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,.5);
    border-radius: 8px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all .3s ease;
}

.scr-menu-toggle:hover {
    background: rgba(212,175,55,.2);
    border-color: #f9e596;
}

.scr-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f9e596;
    border-radius: 2px;
    transition: all .3s ease;
}

.scr-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.scr-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.scr-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.scr-menu {
    position: absolute;
    top: 75px;
    right: 20px;
    min-width: 200px;
    background: rgba(10,15,29,.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212,175,55,.4);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,.8);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s ease;
}

.scr-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scr-menu a {
    display: block;
    padding: 10px 20px;
    color: #e0e6ed;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s ease;
    border-right: 2px solid transparent;
}

.scr-menu a:hover {
    background: rgba(212,175,55,.1);
    color: #f9e596;
    border-right-color: #d4af37;
}

/* =========================================================
   Header
   ========================================================= */
.scr-header-section {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    width: 90%;
    pointer-events: none;
}

.scr-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #f9e596;
    text-shadow: 0 0 20px rgba(212,175,55,.7), 0 0 40px rgba(0,0,0,.8);
    font-weight: 700;
}

.scr-intro {
    margin: 0;
    font-size: 12px;
    color: #9aa8b9;
    text-shadow: 0 0 10px rgba(0,0,0,.9);
}

/* =========================================================
   Start Button
   ========================================================= */
.scr-start {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 40px;
    background: rgba(10,15,29,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212,175,55,.6);
    border-radius: 50px;
    color: #f9e596;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(212,175,55,.2), inset 0 0 20px rgba(212,175,55,.1);
    transition: all .4s ease;
    z-index: 5000;
    animation: pulse-gold 2.5s infinite;
    font-family: inherit;
}

@keyframes pulse-gold {
    0%,100% { box-shadow: 0 0 30px rgba(212,175,55,.2), inset 0 0 20px rgba(212,175,55,.1); }
    50%     { box-shadow: 0 0 50px rgba(212,175,55,.5), inset 0 0 30px rgba(212,175,55,.3); }
}

.scr-start:hover {
    background: rgba(212,175,55,.25);
    border-color: #f9e596;
    box-shadow: 0 0 60px rgba(212,175,55,.7);
    transform: translate(-50%,-50%) scale(1.05);
}

.scr-start:disabled {
    opacity: .5;
    cursor: default;
    animation: none;
}

/* =========================================================
   Circle Wrapper
   ========================================================= */
.scr-circle-wrapper {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 55vh;
    max-width: 800px;
    z-index: 10;
    pointer-events: none;
}

.scr-circle {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* =========================================================
   Cards (دایره‌ای)
   ========================================================= */
.scr-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 72px;
    object-fit: fill;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0,0,0,.8);
    transition: box-shadow .3s ease, opacity .3s ease;
    filter: none;
}

.scr-card:hover {
    box-shadow: 0 0 20px rgba(212,175,55,.6);
    z-index: 9000 !important;
}

.scr-card-selected {
    z-index: 9500 !important;
    box-shadow: 0 0 30px rgba(212,175,55,.9);
    width: 70px;
    height: 100px;
}

.scr-card-disabled {
    opacity: .15;
    pointer-events: none;
}

/* =========================================================
   Selected Card (Big, Center, Floating)
   ========================================================= */
.scr-selected-card {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9500;
    pointer-events: none;
}

.scr-selected-image {
    width: 120px;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 3px solid #d4af37;
    box-shadow: 0 0 40px rgba(212,175,55,.8), inset 0 0 20px rgba(0,0,0,.6);
    animation: scr-selected-in .8s cubic-bezier(.175,.885,.32,1.275) both;
    filter: none;
}

@keyframes scr-selected-in {
    0%   { opacity: 0; transform: scale(.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   Result (Bottom, Transparent, Small Font)
   ========================================================= */
.scr-selected {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 10000;
}

.scr-result {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #e0e6ed;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 20px rgba(0,0,0,.9);
    max-height: 20vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scr-result::-webkit-scrollbar { display: none; }

.scr-result:empty { display: none; }

.scr-result h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #f9e596;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212,175,55,.9), 0 0 5px #000;
}

.scr-verse {
    margin: 0 0 10px;
    font-size: 14px;
    font-style: italic;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212,175,55,.7), 0 0 5px #000;
}

.scr-description {
    margin: 0;
    font-size: 13px;
    color: #e0e6ed;
    text-align: justify;
    text-shadow: 0 1px 8px rgba(0,0,0,.95);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .scr-title { font-size: 18px; }
    .scr-intro { font-size: 10px; }
    .scr-start { top: 22%; padding: 9px 26px; font-size: 13px; }
    .scr-circle-wrapper { top: 54%; height: 50vh; }
    .scr-card { width: 34px; height: 50px; }
    .scr-card-selected { width: 48px; height: 70px; }
    .scr-selected-card { top: 47%; }
    .scr-selected-image { width: 90px; }
    .scr-selected { bottom: 6%; font-size: 11px; }
    .scr-result h2 { font-size: 15px; }
    .scr-verse { font-size: 13px; }
    .scr-description { font-size: 12px; }

    .scr-menu-toggle { top: 15px; right: 15px; width: 40px; height: 40px; }
    .scr-menu { top: 65px; right: 15px; min-width: 180px; }
    .scr-menu a { font-size: 13px; padding: 9px 16px; }
}