/* =======================================================
   RESET & BASE
========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0d0d0d;
    color: #e8e8e8;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =======================================================
   HEADER / NAVBAR – sjednocený styl pro celý web
========================================================== */

header, .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 15, 0.78);
    border-bottom: 1px solid rgba(0,255,0,0.15);
    box-shadow: 0 0 25px rgba(0,255,100,0.15);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00ff7f;
    text-shadow: 0 0 12px #00ff7f;
}

#menu-toggle { display: none; }

.hamburger-menu {
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: none;
    justify-content: center;
    align-items: center;
}

.bars {
    width: 28px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    height: 3px;
    border-radius: 6px;
    background: #00ff7f;
    box-shadow: 0 0 8px #00ff7f;
    transition: 0.35s ease;
}

#menu-toggle:checked + .hamburger-menu .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#menu-toggle:checked + .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .hamburger-menu .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #aaffcc;
    padding: 6px 12px;
    border-radius: 6px;
    transition: .25s;
}

.nav-links a:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 12px #00ff88;
}

/* MOBILE */
@media (max-width: 880px) {
    .hamburger-menu { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 240px;
        height: calc(100vh - 70px);
        padding-top: 40px;
        flex-direction: column;
        gap: 20px;
        padding-left: 20px;
        background: rgba(20,20,20,0.97);
        border-left: 1px solid #00ff7f;
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: 0.32s ease;
        z-index: 999;
    }
    #menu-toggle:checked ~ .nav-links {
        transform: translateX(0);
        box-shadow: -4px 0 18px rgba(0,255,100,0.35);
    }
}

/* =======================================================
   HERO
========================================================== */

.hero {
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-content { position: relative; z-index: 10; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
}

.neon {
    color: #00ff88;
    text-shadow: 0 0 18px #00ff88, 0 0 80px #00ff88;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 480px;
    margin: 20px auto 36px;
    color: #d8ffd8;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,255,100,0.4), transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(100px);
    z-index: 1;
}

.hero-scan-line {
    position: absolute;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, #00ff88, transparent);
    top: 0;
    animation: scan 4s infinite linear;
    opacity: 0.8;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Buttons */
.btn-primary {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 18px #00ff88;
    transition: 0.25s;
}
.btn-primary:hover { filter: brightness(1.15); }

.btn-secondary {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    background: #1d1d1d;
    color: #00ff88;
    border: 1px solid #00ff88;
    transition: 0.25s;
}
.btn-secondary:hover { background: #00ff88; color:#000; }

/* =======================================================
   GENERATOR
========================================================== */

.wrap {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
}

.two-column {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
}
@media (max-width: 980px) {
    .two-column { grid-template-columns: 1fr; }
}

.left-col, .right-col {
    background: rgba(255,255,255,0.03);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(0,255,100,0.2);
    box-shadow: 0 0 25px rgba(0,255,120,0.15);
    backdrop-filter: blur(10px);
}

.right-col {
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

/* Titles */
h1 {
    text-align: center;
    font-size: 2.4rem;
    color: #00ff88;
    margin-bottom: 12px;
    text-shadow: 0 0 14px #00ff88;
}

.subtitle {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 25px;
    color: #aaffcc;
}

/* Card */
.card {
    background: rgba(20,20,20,0.8);
    border: 1px solid rgba(0,255,100,0.2);
    border-radius: 14px;
    padding: 20px;
    margin-top: 18px;
    backdrop-filter: blur(8px);
}

/* =======================================================
   FORM INPUTS
========================================================== */

label {
    font-weight: 600;
    color: #aaffcc;
    margin-top: 12px;
    display: block;
}

input[type="file"],
select,
textarea {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,100,0.25);
    background: rgba(15,15,15,0.9);
    color: #fff;
    font-family: 'Inter', sans-serif;
    box-shadow: inset 0 0 8px rgba(0,255,100,0.3);
    transition: .25s;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Scrollbar inside textarea */
textarea::-webkit-scrollbar {
    width: 8px;
}
textarea::-webkit-scrollbar-track {
    background: #111;
}
textarea::-webkit-scrollbar-thumb {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    border-radius: 10px;
}

/* =======================================================
   FILE INPUT – CUSTOM BUTTON
========================================================== */

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 10px 18px;
    margin-right: 14px;
    border: none;
    border-radius: 10px;
    background: #00ff88;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 12px #00ff88;
    transition: 0.25s ease;
}

input[type="file"]::file-selector-button:hover {
    filter: brightness(1.12);
}

input[type="file"]::file-selector-button:active {
    transform: scale(0.96);
}

textarea:focus,
select:focus,
input[type="file"]:focus {
    border-color: #00ff88;
    box-shadow: 0 0 12px #00ff88, inset 0 0 10px #00ff88;
}

/* =======================================================
   DRAG & DROP UPLOAD
========================================================== */

.upload-area {
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    border: 2px dashed rgba(0,255,100,0.45);
    background: rgba(15,15,15,0.85);
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: inset 0 0 14px rgba(0,255,100,0.18);
    margin-top: 10px;
}

.upload-area:hover {
    border-color: #00ff88;
    box-shadow: inset 0 0 20px rgba(0,255,100,0.35);
}

.upload-area.dragover {
    background: rgba(0,255,100,0.1);
    border-color: #00ff88;
    box-shadow: 0 0 25px #00ff88, inset 0 0 20px #00ff88;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #00ff88;
    text-shadow: 0 0 14px #00ff88;
    margin-bottom: 12px;
}

.upload-area h3 {
    font-size: 1.4rem;
    color: #aaffcc;
    margin-bottom: 6px;
}

.upload-area p {
    color: #77ffaa;
    opacity: 0.8;
}

#uploadPreviewBox {
    margin-top: 15px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,255,100,0.25);
    text-align: center;
    display: none;
}

#uploadPreview {
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    background: #111;
    padding: 6px;
    border: 1px solid rgba(0,255,100,0.25);
}

/* =======================================================
   PROGRESS / RESULTS
========================================================== */

#generateBtn {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    background: #00ff88;
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 20px #00ff88;
    transition: .25s;
}

#generateBtn:hover { filter: brightness(1.1); }
#generateBtn:disabled { opacity: 0.6; cursor: not-allowed; }

#statusBar {
    display:none;
    margin-top:16px;
    height:6px;
    border-radius:3px;
    overflow:hidden;
    background:#222;
}

#statusProgress {
    width: 0;
    height:100%;
    background: linear-gradient(90deg,#00ff88,#00cc88);
    transition: width .3s;
}

#status {
    margin-top:10px;
    text-align:center;
    min-height:18px;
    color:#aaffcc;
}

.result-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #00ff88;
    text-shadow: 0 0 14px #00ff88;
}

#resultImg {
    width:100%;
    max-width:100%;
    max-height:380px;
    object-fit:contain;
    border-radius: 10px;
    background: #000;
    border: 1px solid rgba(0,255,100,0.25);
    margin-bottom: 18px;
}

.download-links {
    text-align: center;
}
.download-links a {
    color: #00ff88;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

#placeholder {
    min-height: 500px;
    text-align:center;
    padding-top:80px;
    opacity:0.4;
}

#toast {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,0,0,0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255,0,0,0.7);
    max-width: 320px;
    cursor: pointer;
}

/* =======================================================
   FOOTER
========================================================== */

footer {
    margin-top: auto;
    padding: 20px;
    text-align:center;
    color:#00ff88;
    border-top:1px solid rgba(0,255,100,0.25);
    background: rgba(255,255,255,0.03);
}

footer a {
    color:#00ff88;
    text-decoration:none;
    font-weight:600;
    margin: 0 6px;
}

.footer {
    margin-top: 80px;
    background: #050505;
    padding: 40px 20px;
    border-top: 1px solid rgba(0,255,100,0.12);
    box-shadow: 0 0 25px rgba(0,255,100,0.15) inset;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-col p {
    color: #c9ffd9;
    opacity: 0.85;
    line-height: 1.45;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.footer-col a {
    color: #c9ffd9;
    opacity: 0.85;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: 0.22s;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-col a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    padding-left: 6px;
}

.footer-bottom {
    margin-top: 35px;
    text-align: center;
    font-size: 0.9rem;
    color: #88ffbf;
    opacity: 0.75;
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-col a:hover {
        padding-left: 0;
    }
}
