/* ==========================================
   RODOPOULOS WEBSITE - PROFESSIONAL DESIGN
   Modern, Clean, Developer-focused
   ========================================== */

/* ============ IMPORTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #121212;
    --bg-elevated: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-rgb: 59, 130, 246;
    
    --border: #1f1f1f;
    --border-hover: #2a2a2a;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-elevated: #ffffff;
    
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    
    --border: #e5e5e5;
    --border-hover: #d4d4d4;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
    position: relative;
}

/* ============ PARTICLES CANVAS ============ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============ CONTAINER ============ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 40px) clamp(12px, 4vw, 20px);
    padding-top: clamp(24px, 5vw, 48px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.icon-theme {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle .moon {
    display: block;
}

.theme-toggle .sun {
    display: none;
}

.light-mode .theme-toggle .moon {
    display: none;
}

.light-mode .theme-toggle .sun {
    display: block;
}

/* ============ HEADER ============ */
.header {
    margin-bottom: clamp(32px, 6vw, 64px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 24px);
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
}

.logo {
    width: clamp(2.5rem, 8vw, 3.5rem);
    height: clamp(2.5rem, 8vw, 3.5rem);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    object-fit: cover;
    transition: var(--transition);
}

.logo:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 2px;
}

.tagline {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--text-secondary);
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

/* ============ MAIN ============ */
.main {
    flex: 1;
}

/* ============ VALIDATION SECTION ============ */
.validation-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: clamp(16px, 5vw, 40px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 2.5vw, 20px);
    margin-bottom: clamp(20px, 4vw, 32px);
}

.section-icon {
    width: clamp(1.5rem, 4vw, 2rem);
    height: clamp(1.5rem, 4vw, 2rem);
    fill: none;
    stroke: currentColor;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.section-header h2 {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.section-description {
    color: var(--text-secondary);
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.5;
}

/* ============ KEY FORM ============ */
.key-form {
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent);
}

#keyInput {
    width: 100%;
    height: clamp(2.75rem, 6vw, 3.25rem);
    padding: 0 1rem 0 3rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

#keyInput::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

#keyInput:hover {
    border-color: var(--border-hover);
}

#keyInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.btn-primary {
    height: clamp(44px, 6vw, 52px);
    padding: 0 clamp(1rem, 3vw, 1.75rem);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============ RESULT MESSAGE ============ */
.result-message {
    height: 1rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.result-message.success {
    color: var(--success);
    opacity: 1;
}

.result-message.error {
    color: var(--error);
    opacity: 1;
}

.result-message.loading {
    color: var(--accent);
    opacity: 1;
}

/* ============ INFO CARDS ============ */
.info-cards {
    margin-top: clamp(5px, 2vw, 10px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(12px, 2vw, 16px);
}

.info-card {
    padding: clamp(16px, 3vw, 24px);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    gap: clamp(12px, 2vw, 16px);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.info-card svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    color: var(--accent);
    flex-shrink: 0;
}

.info-card h3 {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    margin-bottom: 6px;
}

.info-card p {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-card strong {
    color: var(--accent);
    font-weight: 600;
}

/* ============ DOWNLOAD TUTORIAL ============ */
.download-tutorial {
    margin-top: clamp(32px, 5vw, 48px);
    padding: clamp(16px, 3.5vw, 28px);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tutorial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(14px, 2.5vw, 20px);
}

.tutorial-header svg {
    width: clamp(1.25rem, 3vw, 1.5rem);
    height: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--accent);
    flex-shrink: 0;
}

.tutorial-header h3 {
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 600;
    margin: 0;
}

.tutorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8vw, 14px);
}

.tutorial-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(12px, 1.8vw, 14px);
    line-height: 1.6;
    color: var(--text-secondary);
}

.tutorial-list li svg {
    width: 6px;
    height: 6px;
    margin-top: 7px;
    color: var(--accent);
    flex-shrink: 0;
}

.tutorial-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
    margin-top: clamp(32px, 6vw, 64px);
    padding: clamp(20px, 3vw, 32px) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 24px);
}

.footer-content p {
    font-size: clamp(12px, 1.6vw, 14px);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    font-size: clamp(12px, 1.6vw, 14px);
}

.footer-social {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-social:hover {
    color: var(--accent);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.separator {
    color: var(--text-muted);
}

.discord {
    color: var(--text-secondary);
}

.discord strong {
    color: var(--accent);
    font-weight: 600;
}

/* ============ ANIMATIONS ============ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ============ RESPONSIVE ============ */

/* Tablets grandes e monitores pequenos (1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: row;
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        align-items: center;
    }

    .separator {
        display: none;
    }
}

/* Celulares grandes (480px) */
@media (max-width: 480px) {
    .section-icon {
        width: 1.375rem;
        height: 1.375rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .input-icon {
        width: 1rem;
        height: 1rem;
        left: 0.75rem;
    }

    #keyInput {
        padding-left: 2.375rem;
    }
}

/* Celulares pequenos (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0.75rem 0.5rem;
        padding-top: 1.25rem;
    }

    .validation-section {
        border-radius: var(--radius-lg);
    }

    .brand-text h1 {
        font-size: 16px;
    }

    .info-card {
        flex-direction: column;
        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}

/* ============ TELAS GRANDES (2K, 4K) ============ */
/* ================================================
   AJUSTE FÁCIL: Mude APENAS o valor de --scale 
   para aumentar/diminuir TUDO proporcionalmente.
   
   Exemplo: --scale: 1.5 = 50% maior
            --scale: 2.0 = 100% maior (dobro)
            --scale: 1.3 = 30% maior
   ================================================ */

/* 2K / 1440p — Ajuste aqui: */
@media (min-width: 1440px) {
    :root {
        --scale: 1.4; /* <-- MUDE ESTE VALOR PARA 2K */
    }

    html {
        font-size: calc(100% * var(--scale));
    }

    .container {
        max-width: calc(900px * var(--scale));
    }
}

/* 4K / 2160p — Ajuste aqui: */
@media (min-width: 2560px) {
    :root {
        --scale: 1.9; /* <-- MUDE ESTE VALOR PARA 4K */
    }

    html {
        font-size: calc(100% * var(--scale));
    }

    .container {
        max-width: calc(900px * var(--scale));
    }
}

/* ============ UTILITIES ============ */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============ SELECTION COLORS ============ */
::selection {
    background: rgba(var(--accent-rgb), 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(var(--accent-rgb), 0.3);
    color: var(--text-primary);
}
