/* SteamLibraryEditor - Dark Gaming Theme */

:root {
    --primary: #1a9fff;
    --primary-dark: #0d7ad9;
    --primary-glow: rgba(26, 159, 255, 0.3);
    --secondary: #2ecc71;
    --accent: #9b59b6;
    --bg-dark: #0a0e14;
    --bg-card: #151b23;
    --bg-card-hover: #1a222d;
    --text-primary: #ffffff;
    --text-secondary: #eeeeee;
    --border: #2a3441;
    --danger: #e74c3c;
    --warning: #f39c12;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.steam-icon {
    width: 60px;
    height: 60px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary);
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.glow-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 1.2em;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.features h2, .how-it-works h2, .download-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, var(--bg-card) 50%, transparent);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* Referral Section */
.referral-section {
    padding: 100px 0;
}

.referral-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1f2e 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}

.referral-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.referral-card > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.referral-info {
    margin-top: 30px;
}

.referral-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.referral-link-box input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.referral-hint {
    color: var(--text-secondary);
    font-style: italic;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 500px;
    margin: 0 auto;
}

.download-info {
    margin-bottom: 30px;
}

.download-info p {
    color: var(--text-secondary);
}

.download-size {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-step {
    text-align: center;
}

.modal-step h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-step > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.referral-applied {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Loader */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Result Styles */
.result-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 30px;
}

.result-success h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.key-display {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
}

.key-link {
    display: block;
    margin-top: 20px;
}

.key-link a {
    color: var(--text-secondary);
    text-decoration: none;
}

.key-link a:hover {
    text-decoration: underline;
}

.ad-free-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), #27ae60);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .features h2, .how-it-works h2, .download-section h2 {
        font-size: 2rem;
    }

    .step-arrow {
        display: none;
    }

    .referral-stats {
        gap: 30px;
    }

    .referral-link-box {
        flex-direction: column;
    }
}
