/* ==========================================================================
   MageShield - Dark Fantasy Premium CSS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0f172a;        /* Slate 900 */
    --bg-panel: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --border-color: #334155;   /* Slate 700 */
    --border-gold: #cfa858;    /* Polished Gold */
    --border-gold-glow: rgba(207, 168, 88, 0.4);
    
    --text-main: #f8fafc;      /* Slate 50 */
    --text-muted: #94a3b8;     /* Slate 400 */
    --highlight-gold: #eab308; /* Yellow 500 */
    
    --btn-normal: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --btn-hover: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    --btn-primary: linear-gradient(180deg, #b48530 0%, #8c6218 100%);
    --btn-primary-hover: linear-gradient(180deg, #cfa858 0%, #a17420 100%);
    
    --error-red: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    /* Premium dark fantasy background (could be an image, using a deep rich gradient here) */
    background: radial-gradient(circle at top, #1e293b 0%, #020617 100%);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    user-select: none;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */
#landing-page {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lp-logo {
    font-size: 32px;
    color: var(--border-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--border-gold-glow);
}

.lp-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    text-align: center;
    padding: 20px;
    /* Soft glow behind the hero */
    background: radial-gradient(circle at center, rgba(207, 168, 88, 0.05) 0%, transparent 60%);
}

.lp-hero-content {
    max-width: 900px;
}

.lp-title {
    font-size: 56px;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.lp-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 400;
}

.lp-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.feature-box {
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 8px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--border-gold);
}

.feature-box h3 {
    color: var(--border-gold);
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   MODAL OVERLAY (Glassmorphism)
   ========================================================================== */
#modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(2, 6, 23, 0.85); /* deep shadow */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-window {
    width: 500px;
    max-width: 95vw;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(207, 168, 88, 0.05);
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   TABS & NAVIGATION
   ========================================================================== */
.game-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 10px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.tab-btn.active {
    color: var(--border-gold);
    border-bottom: 2px solid var(--border-gold);
    background: rgba(207, 168, 88, 0.05);
}

.logout-btn {
    flex: 0.5;
    color: #fca5a5;
}
.logout-btn:hover {
    color: var(--error-red);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.parchment-container {
    padding: 40px 30px;
}

.section-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.subsection-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--border-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.tibia-input {
    width: 100%;
    padding: 14px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: text;
}

.tibia-input:focus {
    outline: none;
    border-color: var(--border-gold);
    box-shadow: 0 0 0 2px var(--border-gold-glow);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.tibia-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: var(--btn-normal);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.tibia-btn:hover:not(:disabled) {
    background: var(--btn-hover);
    border-color: #475569;
}

.tibia-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.tibia-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn {
    background: var(--btn-primary);
    border-color: var(--border-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.primary-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    box-shadow: 0 6px 20px rgba(207, 168, 88, 0.2);
}

/* ==========================================================================
   PUZZLE SLIDER (Anti-Bot PoW)
   ========================================================================== */
.puzzle-container {
    width: 100%;
    height: 54px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}
.puzzle-track {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(180,133,48,0.2) 0%, rgba(180,133,48,0.6) 100%);
}
.puzzle-text {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s;
}
.puzzle-thumb {
    width: 54px;
    height: 52px;
    background: var(--btn-primary);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    position: absolute;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: grab;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}
.puzzle-thumb:active {
    cursor: grabbing;
}
.puzzle-container.verified .puzzle-track {
    width: 100%;
    background: rgba(39, 174, 96, 0.3); /* Soft green success */
    transition: width 0.2s;
}
.puzzle-container.verified .puzzle-text {
    color: #4ade80; /* Green 400 */
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}
.puzzle-container.verified .puzzle-thumb {
    background: #166534; /* Green 800 */
    border-color: #22c55e;
}

/* ==========================================================================
   ALERTS & PANELS
   ========================================================================== */
.alert-box {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.alert-box.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

.status-panel {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.status-row:last-child {
    border-bottom: none;
}
.status-label {
    color: var(--text-muted);
    font-size: 14px;
}
.status-value {
    font-weight: 600;
    font-size: 14px;
}
.highlight-gold {
    color: var(--border-gold);
}

.hwid-list-container {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}
.hwid-list {
    list-style: none;
}
.hwid-list li {
    padding: 8px 0;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.qr-box {
    background: #fff; /* QR Code needs white background to scan easily */
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}
.pix-result {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.download-box {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.client-icon {
    font-size: 48px;
}
.client-info strong {
    display: block;
    font-size: 18px;
    color: var(--border-gold);
    margin-bottom: 5px;
}

/* ==========================================================================
   ANIMATED CREATURES (LANDING PAGE)
   ========================================================================== */
.creature-animation {
    position: absolute;
    z-index: 1; /* Fica atrás do hero, mas visível */
    pointer-events: none; /* Não atrapalha o clique do usuário */
    opacity: 0.8;
}

.creature-animation img {
    image-rendering: pixelated; /* Mantém a arte pixel do Tibia nítida */
    transform: scale(1.5); /* Deixa um pouco maior */
}

/* Dragon Lord - Anda da Direita para a Esquerda */
.dl-walk {
    bottom: 10%;
    right: -150px;
    animation: walkRightToLeft 25s linear infinite;
}

/* Demon - Anda da Esquerda para a Direita */
.demon-walk {
    top: 20%;
    left: -150px;
    animation: walkLeftToRight 35s linear infinite;
    animation-delay: 5s; /* Começa depois */
}
.demon-walk img {
    transform: scale(1.5) scaleX(-1); /* Inverte horizontalmente para "olhar" para a direita */
}

/* Behemoth - Anda da Direita para a Esquerda mais acima */
.behemoth-walk {
    top: 45%;
    right: -150px;
    animation: walkRightToLeft 45s linear infinite;
    animation-delay: 15s;
}

/* Keyframes */
@keyframes walkRightToLeft {
    0% { transform: translateX(150px); }
    100% { transform: translateX(-120vw); }
}

@keyframes walkLeftToRight {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(120vw); }
}
