/**
 * BUDE AKCE - Styly
 * Umístění: www/css/style.css
 */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* === CSS VARIABLES === */
:root {
    --bg: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A25;
    --accent: #FF6B35;
    --accent-hover: #FF8F65;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --accent-soft: rgba(255, 107, 53, 0.08);
    --green: #22C55E;
    --green-soft: rgba(34, 197, 94, 0.12);
    --red: #EF4444;
    --red-soft: rgba(239, 68, 68, 0.12);
    --yellow: #FACC15;
    --yellow-soft: rgba(250, 204, 21, 0.12);
    --text: #F0EDE6;
    --text-muted: #8A8694;
    --text-dim: #5A5666;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius: 12px;
    --radius-lg: 16px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
}

img { max-width: 100%; }

/* === LAYOUT === */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px;
}

.container-narrow {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px;
}

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* === LOGO === */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), #FF8F65);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-lg .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 10px;
}

.logo-lg .logo-text {
    font-size: 26px;
}

.logo-claim {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* === HEADER === */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* === CARD === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.25s ease;
}

.card-clickable:hover {
    background: var(--bg-card-hover);
    cursor: pointer;
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: -0.2px;
    text-decoration: none;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.btn-success {
    background: var(--green);
    color: #fff;
}
.btn-success:hover:not(:disabled) {
    background: #16A34A;
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    color: #fff;
}

.btn-muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}
.btn-muted:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-active-success { background: var(--green); color: #fff; }
.btn-active-danger { background: var(--red); color: #fff; }
.btn-active-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* === FORM === */
.form-group {
    margin-bottom: 16px;
}

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

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.03);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input-icon {
    position: relative;
}

.form-input-icon .form-input {
    padding-left: 40px;
}

.form-input-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-dim);
    pointer-events: none;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row > * {
    flex: 1;
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8694' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }

/* === TABS === */
.tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    background: var(--accent);
    color: #fff;
}

/* === FLASH MESSAGES === */
.flash-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 24px 0 24px;
}

.flash {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.flash-success {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.flash-error {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-info {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* === STATS GRID === */
.stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 16px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-number-green { color: var(--green); }
.stat-number-red { color: var(--red); }
.stat-number-yellow { color: var(--yellow); }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === GUEST LIST === */
.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
}

.guest-item-me {
    background: rgba(255, 107, 53, 0.06);
    border-color: rgba(255, 107, 53, 0.2);
}

.guest-name {
    font-size: 14px;
    color: var(--text);
}

.guest-email {
    font-size: 13px;
    color: var(--text-dim);
}

.guest-me-label {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-left: 8px;
}

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

.guest-group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.guest-group-empty {
    font-size: 13px;
    color: var(--text-dim);
    padding-left: 8px;
}

/* === EVENT CARD === */
.event-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.event-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.event-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.event-card-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* === INVITE BOX === */
.invite-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.invite-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.invite-link {
    font-family: monospace;
    font-size: 15px;
    color: var(--accent);
    word-break: break-all;
    margin-bottom: 16px;
}

.invite-password {
    font-family: monospace;
    font-size: 20px;
    color: var(--text);
    letter-spacing: 3px;
}

.invite-preview {
    margin-top: 20px;
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === DEADLINE PICKER === */
.deadline-options {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.deadline-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.deadline-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.deadline-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* === RESPONSE BUTTONS === */
.response-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.response-buttons .btn {
    flex: 1;
}

/* === LANDING PAGE === */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.landing-glow-1 {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-glow-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.landing-content {
    max-width: 520px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.landing-claim {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 24px;
}

.landing-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.landing-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-features {
    margin-top: 64px;
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.landing-feature {
    text-align: center;
    min-width: 120px;
}

.landing-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.landing-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.landing-feature-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* === AUTH PAGES === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* === VERIFICATION CODE === */
.verify-code-box {
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 13px;
    color: var(--accent);
    text-align: center;
}

.verify-code-big {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
}

/* === PASSWORD GATE === */
.gate-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.gate-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    margin-bottom: 4px;
}

.gate-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* === GUEST DASHBOARD HEADER === */
.event-hero {
    text-align: center;
    margin-bottom: 16px;
}

.event-hero-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.event-hero-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text);
    margin-bottom: 6px;
}

.event-hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.event-hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.event-hero-deadline {
    margin-top: 16px;
    text-align: center;
}

/* === MY RESPONSE === */
.my-response {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-response-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

/* === HIDDEN GUESTS === */
.hidden-guests {
    text-align: center;
    padding: 32px;
}

.hidden-guests-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* === ADMIN === */
.admin-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.admin-user-email {
    font-size: 13px;
    color: var(--text-muted);
}

/* === CONFIRMATION === */
.confirm-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.confirm-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text);
    margin-bottom: 8px;
}

.confirm-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* === TYPOGRAPHY === */
.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    margin-bottom: 16px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }

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

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* === RECAPTCHA === */
.g-recaptcha {
    margin-bottom: 16px;
}

.recaptcha-note {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: -10px;
    margin-bottom: 16px;
}

/* === BACK LINK === */
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

/* === COPY BUTTON === */
.copy-area {
    position: relative;
}

.copied-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--green);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .landing h1 {
        font-size: 36px;
    }
    
    .landing-claim {
        font-size: 22px;
    }
    
    .landing-desc {
        font-size: 14px;
    }
    
    .landing-features {
        gap: 20px;
    }
    
    .container {
        padding: 16px;
    }
    
    .container-narrow {
        padding: 16px;
    }
    
    .card {
        padding: 18px;
    }
    
    .site-header {
        margin-bottom: 24px;
    }
    
    .event-hero-title {
        font-size: 22px;
    }
    
    .event-hero-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .tabs {
        font-size: 12px;
    }
    
    .tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .response-buttons {
        flex-direction: column;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-card-badges {
        align-self: flex-start;
    }
    
    .deadline-options {
        gap: 4px;
    }
    
    .deadline-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .invite-password {
        font-size: 16px;
    }
    
    .admin-user-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .my-response {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .landing h1 {
        font-size: 30px;
    }
    
    .landing-claim {
        font-size: 18px;
    }
    
    .landing-buttons {
        flex-direction: column;
    }
    
    .landing-buttons .btn {
        width: 100%;
    }
}
