/* ========================================= */
/* === BASE & UNIVERSAL STYLES === */
/* ========================================= */

/* 1. Import Premium Fonts */
@import url('../imports/fonts.css');

/**************/
body {
    margin: 0;
    overflow: hidden;
    background: #050505;
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

/**************/

/* === PHASE 2 & 3: ALL INDIAN LANGUAGES SUPPORT === */

/* 2. Language-Specific Font Families */

/* Hindi (hi) */
body.lang-hi {
    font-family: 'Noto Sans Devanagari', sans-serif !important;
}

/* Tamil (ta) */
body.lang-ta {
    font-family: 'Noto Sans Tamil', sans-serif !important;
}

/* Assamese (as) & Bengali (bn) - They share the script */
body.lang-as,
body.lang-bn {
    font-family: 'Noto Sans Bengali', sans-serif !important;
}

/* Kannada (kn) */
body.lang-kn {
    font-family: 'Noto Sans Kannada', sans-serif !important;
}

/* Malayalam (ml) */
body.lang-ml {
    font-family: 'Noto Sans Malayalam', sans-serif !important;
}

/* Odia (or) */
body.lang-or {
    font-family: 'Noto Sans Oriya', sans-serif !important;
}

/* Telugu (te) */
body.lang-te {
    font-family: 'Noto Sans Telugu', sans-serif !important;
}


/* 3. UNIVERSAL FIX: Reset Spacing & Line Height for ALL Indian Scripts */
/* This ensures no letters get cut off and ligatures connect properly */
body.lang-hi *,
body.lang-ta *,
body.lang-as *,
body.lang-bn *,
body.lang-kn *,
body.lang-ml *,
body.lang-or *,
body.lang-te * {
    letter-spacing: 0 !important;
}

body.lang-hi .btn,
body.lang-ta .btn,
body.lang-as .btn,
body.lang-bn .btn,
body.lang-kn .btn,
body.lang-ml .btn,
body.lang-or .btn,
body.lang-te .btn,
.btn-hero,
.title,
button {
    line-height: 1.6 !important;
    font-weight: 700;
}


/* === ORIENTATION LOCK OVERLAY === */
#orientation-lock {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e0c090;
    font-size: 24px;
    text-align: center;
}

.lock-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: spin 2s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* === LOADING SCREEN STYLES === */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-text {
    margin-top: 40px;
    color: #FFD700;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* CSS 3D Dice Animation (Used in loading screen or elsewhere) */
.scene {
    width: 60px;
    height: 60px;
    perspective: 600px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: tumble 2s infinite linear;
}

.face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.face.front {
    transform: rotateY(0deg) translateZ(30px);
}

.face.back {
    transform: rotateY(180deg) translateZ(30px);
}

.face.right {
    transform: rotateY(90deg) translateZ(30px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.face.top {
    transform: rotateX(90deg) translateZ(30px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes tumble {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
    }
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* === GLOBAL BUTTON STYLE (Classic Brown/Dark Theme) === */
.btn {
    background: #2d1b15;
    color: #d7ccc8;
    border: 1px solid #5d4037;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0 4px 0 #1a0f0b;
    transition: all 0.2s;
    text-transform: uppercase;
    /* Default spacing (can be overridden by inline styles or specific IDs) */
    padding: 12px 24px;
    font-size: 16px;
    position: relative;
}

.btn:hover {
    background: #3e2723;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1a0f0b;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1a0f0b;
}

.btn:disabled {
    background: #222;
    color: #555;
    border-color: #333;
    transform: none;
    box-shadow: none;
    cursor: default;
}