/*
 * Workshop Platform - verejne stranky
 * Sdilene styly pro home, gate a limit-reached
 */

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS promenne ===== */
:root {
    --black: #000000;
    --white: #ffffff;
    --red: #E30613;
    --gray-light: #f5f5f5;
    --gray-mid: #999999;
    --gray-border: #e0e0e0;
    --green: #2d7a3a;
    --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ===== Zakladni typografie ===== */
body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigace ===== */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--gray-border);
}

.nav a {
    text-decoration: none;
}

.nav img {
    height: 40px;
    width: auto;
}

/* Home - navigace s linky */
.nav--full {
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-right {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-right a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-right a:hover {
    color: var(--red);
}

/* ===== Hlavni obsah ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.main--center {
    justify-content: center;
    text-align: center;
}

.content {
    width: 100%;
    max-width: 480px;
}

/* ===== Hero sekce (home) ===== */
.hero-logo {
    width: 280px;
    max-width: 80vw;
    margin-bottom: 48px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    color: var(--black);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-mid);
    margin-bottom: 40px;
    letter-spacing: 0.03em;
}

/* ===== Coming Soon badge ===== */
.coming-soon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 6px 20px;
    margin-bottom: 24px;
}

/* ===== Workshop info (gate) ===== */
.workshop-name {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.workshop-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-mid);
    margin-bottom: 12px;
    max-width: 500px;
    line-height: 1.6;
}

.workshop-date {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 40px;
}

/* ===== Nadpisy (limit-reached) ===== */
.title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--gray-mid);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ===== Workshop info box ===== */
.workshop-info-box {
    text-align: center;
    margin-bottom: 32px;
    padding: 16px;
    border: 1px solid var(--gray-border);
}

.workshop-info-box__name {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 4px;
}

.workshop-info-box__date {
    font-size: 14px;
    color: var(--gray-mid);
}

/* ===== Sekce label ===== */
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-border);
}

.gate-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 20px;
}

/* ===== Formulare ===== */
.code-form {
    width: 100%;
    max-width: 420px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.code-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input::placeholder {
    color: var(--gray-mid);
    letter-spacing: 0.1em;
    text-transform: none;
    font-weight: 300;
}

.code-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.code-input--spaced {
    margin-bottom: 16px;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid var(--gray-border);
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--black);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input--readonly {
    background: var(--gray-light);
    color: var(--gray-mid);
    letter-spacing: 0.1em;
    font-family: monospace;
}

/* ===== Tlacitka ===== */
.submit-btn {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.submit-btn:hover {
    background: var(--white);
    color: var(--black);
}

.submit-btn--mt {
    margin-top: 8px;
}

/* ===== Zpravy ===== */
.error-message {
    margin-top: 12px;
    font-size: 14px;
    color: var(--red);
    font-weight: 400;
}

.success-msg {
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--green);
    border: 1px solid var(--green);
}

.error-msg {
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--red);
    border: 1px solid var(--red);
}

/* ===== Doplnkove prvky ===== */
.divider {
    width: 40px;
    height: 1px;
    background: var(--black);
    margin: 48px auto 0;
}

.divider--sm {
    margin-top: 40px;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* ===== Zpetne odkazy ===== */
.back-link {
    display: block;
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--gray-mid);
}

.back-link a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-border);
    transition: border-color 0.2s, color 0.2s;
}

.back-link a:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ===== Paticka ===== */
.footer {
    padding: 24px 40px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
    font-size: 13px;
    color: var(--gray-mid);
    font-weight: 300;
    letter-spacing: 0.03em;
}

.footer a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--red);
}

/* ===== Animace ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Gate animace */
.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-d1 {
    animation: fadeInUp 0.6s ease-out 0.15s forwards;
    opacity: 0;
}

.animate-d2 {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .nav-right {
        display: none;
    }

    .main {
        padding: 40px 20px;
    }

    .hero-logo {
        width: 200px;
        margin-bottom: 36px;
    }

    .hero-title {
        font-size: 24px;
    }

    .workshop-name {
        font-size: 28px;
    }

    .title {
        font-size: 24px;
    }

    .code-form {
        max-width: 100%;
    }

    .footer {
        padding: 20px;
    }
}
