:root {
    /* Neutralna, elegancka ciemna paleta */
    --bg-color: #121212;
    /* Czysta czerń/szarość */
    --bg-gradient: linear-gradient(to bottom, #121212, #181818);

    --card-bg: #1e1e1e;
    /* Solidny, ciemny szary */
    --card-border: #333333;

    --text-primary: #d1d5db;
    /* Softer white */
    --text-secondary: #9ca3af;
    /* Dimmer gray */

    --accent: #3b82f6;
    /* Klasyczny niebieski (systemowy, zaufany) */
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.2);

    --success: #10b981;
    --danger: #ef4444;

    --border-radius: 8px;
    /* Mniej zaokrąglone, bardziej profesjonalne */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    /* Flat background instead of vibrant gradient */
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Blobs removed */

.hero {
    margin-bottom: 50px;
    animation: fadeIn Down 0.8s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--text-primary);
    /* Solid color */
}

.hero h1 a {
    text-decoration: none;
    color: inherit;
}

.logo-img {
    max-width: 85px;
    height: auto;
    display: block;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Karta Uploadu */
.upload-area {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    /* backdrop-filter usunięty dla klasycznego wyglądu */
    border-radius: var(--border-radius);
    padding: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.upload-icon {
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Opcje i Przyciski */
.options {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: left;
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Custom Checkbox (Toggle) */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    color: var(--text-secondary);
}

.toggle-switch input {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-secondary);
    border-radius: 6px;
    display: grid;
    place-content: center;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.toggle-switch input::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--text-primary);
    background-color: var(--text-primary);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.toggle-switch input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked::before {
    transform: scale(1);
    background-color: white;
    box-shadow: none;
}

.legal-check a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-check a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}


/* Result Area */
#result-area {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    animation: slideUp 0.4s ease-out;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.link-box {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.link-box input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent);
    border-radius: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.link-box input:focus {
    border-color: var(--accent);
}

.link-box button,
#copy-btn {
    padding: 0 25px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.link-box button:hover,
#copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3);
}

/* Share Buttons */
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.wa {
    background: #25D366;
}

/* WhatsApp Green */
.share-btn.fb {
    background: #1877F2;
}

/* Facebook Blue */
.share-btn.tg {
    background: #0088cc;
}

/* Telegram Blue */
.share-btn.native {
    background: var(--card-border);
    color: var(--text-primary);
}

#reset-btn {
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

#reset-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* SEO Section */
.seo-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.seo-info h3 {
    text-align: center;
    margin-bottom: 30px !important;
    font-size: 1.8rem;
}

.seo-info ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.seo-info li {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent);
}

/* View Page Improvements */
.view-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: inline-block;
    min-width: 300px;
}

#timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

#protected-image-container {
    border: 2px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .seo-info ul {
        grid-template-columns: 1fr;
    }
}