/* MILLIONAIRE PRODUCTIONS BRAND VARIABLES */
:root {
    --color-bg: #050505;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.1);
    
    --neon-cyan: #00FFFF;
    --neon-magenta: #FF00FF;
    --neon-purple: #8A2BE2;
    
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none; 
}

body {
    background-color: var(--color-bg);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}

#app-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(30, 30, 30, 0.6) 0%, var(--color-bg) 70%);
}

/* SCREEN MANAGEMENT */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.screen.active {
    display: flex;
}

.hidden {
    display: none !important;
}

.mt-2 {
    margin-top: 2rem;
}

/* TYPOGRAPHY & COLORS */
.text-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }
.text-magenta { color: var(--neon-magenta); text-shadow: 0 0 10px rgba(255, 0, 255, 0.3); }
.text-purple { color: var(--neon-purple); text-shadow: 0 0 10px rgba(138, 43, 226, 0.3); }

/* HOME SCREEN SPECIFICS */
#screen-home {
    justify-content: center;
    align-items: center;
}

.brand-header {
    text-align: center;
    margin-bottom: 4rem;
}

.brand-title {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.brand-subtitle {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.4rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    margin-top: -0.5rem;
}

/* TOP NAVIGATION BAR */
.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1rem 0.5rem 0;
    transition: color 0.2s;
}

.back-btn:active {
    color: var(--text-main);
}

.screen-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15rem;
    margin-left: auto;
}

/* BUTTONS */
.nav-menu {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-btn {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-small {
    height: 50px;
    font-size: 0.9rem;
}

.btn-half {
    flex: 1;
    height: 60px;
    font-size: 0.9rem;
}

.btn-cyan { border-bottom: 2px solid var(--neon-cyan); }
.btn-magenta { border-bottom: 2px solid var(--neon-magenta); }
.btn-purple { border-bottom: 2px solid var(--neon-purple); }

.btn-cyan:active { background: rgba(0, 255, 255, 0.1); transform: scale(0.97); }
.btn-magenta:active { background: rgba(255, 0, 255, 0.1); transform: scale(0.97); }
.btn-purple:active { background: rgba(138, 43, 226, 0.1); transform: scale(0.97); }

/* FORMS */
.form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.input-group label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.input-group input {
    /* Allow typing in inputs */
    user-select: auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: white;
    padding: 1.2rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
}

.action-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* SCAN ANIMATIONS & UI */
.scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.scan-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-out;
}

.cyan-ring { border: 2px solid var(--neon-cyan); box-shadow: 0 0 20px rgba(0,255,255,0.5); }
.magenta-ring { border: 2px solid var(--neon-magenta); box-shadow: 0 0 20px rgba(255,0,255,0.5); }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.scan-status {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.scan-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* DATA DISPLAY CARDS */
.result-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.data-group {
    margin-bottom: 1.2rem;
}

.data-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    margin-bottom: 0.3rem;
}

.data-value {
    font-size: 1rem;
    word-break: break-all;
}

/* SAVED TAGS LIST */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.saved-tag-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--neon-purple);
    border-radius: 8px;
    padding: 1.2rem;
}

.saved-tag-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.saved-tag-url {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.saved-tag-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-micro {
    flex: 1;
    height: 36px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
}
