/* Create Page Specific Styles */

/* Fix horizontal scroll - ensure nothing overflows */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    max-width: 100%;
}

/* Event Type Selector */
input[name="eventType"]:checked + .event-type-option {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.event-type-option:not([data-type="premium"]):hover {
    border-color: var(--brand-primary);
}

.event-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.theme-option {
    position: relative;
}

    .theme-option input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

    .theme-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        background: var(--bg-primary);
    }

        .theme-option label:hover {
            border-color: var(--brand-primary);
            background: var(--bg-accent);
        }

    .theme-option input:checked + label {
        border-color: var(--brand-primary);
        background: var(--brand-primary-light);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

.theme-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.theme-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Theme preview colors - UPDATED */
.preview-white {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
}

.preview-green {
    background: linear-gradient(135deg, #0f9b8e 0%, #38ef7d 100%);
}

.preview-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.preview-pink {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
}

.preview-purple {
    background: linear-gradient(135deg, #5f2c82 0%, #49a09d 100%);
}

.preview-black {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
}

.preview-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* Premium theme names (badge style on Create page) */
.premium-themes-text .premium-theme-name {
    display: inline-block;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.25em 0.6em;
    border-radius: 9999px;
    margin: 0 0.2em 0.35em 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Enhanced Success Card with Branding */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.qr-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px dashed #d1fae5;
    position: relative;
    overflow: hidden;
}

    .qr-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .qr-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -30%;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.qr-container {
    position: relative;
    z-index: 1;
}

.qr-brand-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.qr-code-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.qr-code-image {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.qr-instructions {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.qr-instructions-list {
    text-align: left;
    max-width: 360px;
    margin: 1rem auto 0;
    padding-left: 1.5rem;
}

    .qr-instructions-list li {
        margin-bottom: 0.5rem;
        color: var(--text-secondary);
    }

.info-row {
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.link-copy-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.link-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .link-input:focus {
        outline: none;
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

.copy-button {
    padding: 0.875rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .copy-button:hover {
        background: var(--bg-secondary);
        border-color: var(--brand-primary);
    }

    .copy-button.copied {
        background: var(--brand-primary);
        color: white;
        border-color: var(--brand-primary);
    }

/* Mobile Responsive Fixes */
@media (max-width: 640px) {
    .event-type-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .theme-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .theme-option label {
        padding: 0.75rem 0.375rem;
    }

    .theme-color-preview {
        width: 32px;
        height: 32px;
    }

    .theme-name {
        font-size: 0.75rem;
    }

    .qr-section {
        padding: 1.5rem 1rem;
    }

    .qr-brand-logo {
        width: 60px;
    }

    .qr-code-wrapper {
        padding: 1rem;
    }

    .qr-code-image {
        max-width: 200px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .link-copy-group {
        flex-direction: column;
        width: 100%;
    }

    .copy-button {
        width: 100%;
    }

    .success-checkmark {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}
