/* Raspiši Pobedu - Dark Theme */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: #1A1A1A;
    --red: #C62828;
    --red-light: #E53935;
    --white: #FFFFFF;
    --gray: #888888;
    --gray-light: #AAAAAA;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    height: 48px;
    width: auto;
}

/* Main */
main {
    flex: 1;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.white { color: var(--white); }
.red { color: var(--red); }

.subtitle {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 32px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-align: center;
}

/* Intro Section */
.intro-section {
    text-align: center;
}

/* Upload Zone */
.upload-zone {
    background: var(--bg-secondary);
    border: 2px dashed #333;
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--red);
    background: rgba(198, 40, 40, 0.05);
}

.upload-zone.drag-over {
    border-color: var(--red);
    background: rgba(198, 40, 40, 0.1);
    transform: scale(1.01);
}

.upload-icon {
    color: var(--red);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Success Section */
.success-section {
    display: none;
    text-align: center;
}

.success-section.visible {
    display: block;
}

.intro-section.hidden {
    display: none;
}

.success-message {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.15), rgba(198, 40, 40, 0.05));
    border: 1px solid rgba(198, 40, 40, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.success-message h2 {
    margin-bottom: 12px;
}

.success-message p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Preview */
.preview-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    display: inline-block;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-light);
    border: 1px solid #333;
    margin-bottom: 32px;
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--white);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Download Section */
.download-section {
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Instructions */
.instructions {
    margin-top: 32px;
}

.instruction-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.instruction-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
}

.platform-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.instruction-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.instruction-card p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    margin-top: auto;
}

footer p {
    font-size: 0.85rem;
    color: var(--gray);
}

footer a {
    color: var(--red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 480px) {
    .download-buttons {
        flex-direction: row;
    }
    
    .btn-primary {
        flex-direction: column;
        padding: 20px 16px;
        gap: 6px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
}

@media (min-width: 640px) {
    h1 {
        font-size: 3rem;
    }
    
    .container {
        padding: 48px 24px;
    }
}
