/* Furry Friends Photo Awards 2025 - Modern Design */

/* CSS Variables */
:root {
    --bg: #0f1419;
    --surface: #1a1f2e;
    --panel: #222938;
    --text: #e4e7eb;
    --text-secondary: #a0aec0;
    --muted: #718096;
    --primary: #6366f1;
    --primary-700: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --accent: #8b5cf6;
    --accent-rgb: 139, 92, 246;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --warning: #f59e0b;
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --card-bg: #f4f4f4;
    --border: #2d3748;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --panel: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --primary: #6366f1;
    --primary-700: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --accent: #8b5cf6;
    --accent-rgb: 139, 92, 246;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 5px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.6);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--primary-700);
}

.link {
    color: var(--primary);
    text-decoration: underline;
}

.link:hover {
    color: var(--primary-700);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.theme-toggle-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: var(--surface);
    transform: scale(1.05);
}

.icon-moon {
    display: block;
}

.icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(var(--primary-rgb), 0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(var(--accent-rgb), 0.1),
            transparent 60%
        );
    z-index: -1;
}

[data-theme="light"] .hero-bg {
    background: radial-gradient(
            circle at 20% 30%,
            rgba(var(--primary-rgb), 0.08),
            transparent 65%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(var(--accent-rgb), 0.06),
            transparent 65%
        );
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-logo {
    /* margin-bottom: 2rem; */
    animation: fadeInDown 1s ease;
}

.event-logo {
    margin-bottom: 1rem;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .event-logo {
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1));
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 20px;
    color: var(--accent);
    font-weight: 600;
    /* font-style: italic; */
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-banner {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInRight 1s ease;
}

[data-theme="light"] .hero-banner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-description {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.submission-deadline {
    font-size: 16px;
    color: var(--accent);
    margin-top: 12px;
    font-weight: 500;
}

.submission-deadline strong {
    color: var(--primary);
    font-weight: 700;
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: var(--surface);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

[data-theme="light"] .category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card.featured {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        var(--panel) 0%,
        rgba(var(--primary-rgb), 0.08) 100%
    );
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.12) 0%,
        rgba(var(--accent-rgb), 0.08) 100%
    );
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.2) 0%,
        rgba(var(--accent-rgb), 0.15) 100%
    );
}

.category-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
    flex-grow: 1;
}

.category-footer {
    margin-top: auto;
    padding-top: 20px;
}

/* Submit Section */
.submit-section {
    padding: 100px 0;
    background: var(--bg);
    display: none; /* Hidden - using modal instead */
}

.submission-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submission-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.submission-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal-large {
    max-width: 900px;
    max-height: 90vh;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submission-modal.closing .modal-large {
    animation: slideDown 0.3s cubic-bezier(0.7, 0, 0.84, 0);
}

.submission-form-wrapper {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

[data-theme="dark"] .submission-form-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 36px 40px;
    color: white;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    opacity: 0.9;
    font-size: 15px;
}

.form-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
    background: var(--bg);
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

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

.error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

/* Phone Verification Styles */
.phone-verification-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.phone-verification-wrapper input {
    flex: 1;
}

.phone-verification-wrapper .btn-sm {
    white-space: nowrap;
    padding: 0 16px;
    font-size: 14px;
}

.verification-status {
    display: none;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.otp-verification-wrapper {
    margin-top: 12px;
    padding: 16px;
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.otp-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.otp-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.5em;
    font-weight: 600;
}

.otp-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.btn-link:hover:not(:disabled) {
    color: var(--primary-700);
    text-decoration: underline;
}

.btn-link:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

/* Category Selection */
.category-select-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-option {
    position: relative;
    cursor: pointer;
}

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

.category-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    min-height: 100px;
}

.category-option input:checked + .category-option-content {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.category-option:hover .category-option-content {
    border-color: var(--primary);
}

.category-option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-option-desc {
    font-size: 13px;
    color: var(--muted);
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 3px dashed var(--border);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--surface);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.05) 0%,
        rgba(var(--accent-rgb), 0.03) 100%
    );
    transform: scale(1.01);
}

.file-upload-area.drag-over {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.1) 0%,
        rgba(var(--accent-rgb), 0.05) 100%
    );
    border-style: solid;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder svg {
    margin: 0 auto 20px;
    color: var(--primary);
    width: 64px;
    height: 64px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.upload-hint {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.file-preview {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: center;
    text-align: left;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.file-preview img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.file-size {
    font-size: 14px;
    color: var(--muted);
}

.btn-remove-file {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-file:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--danger-rgb), 0.3);
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-700) 100%
    );
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15) !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

.form-actions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    display: block;
}

/* Modals */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.info-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.modal-box {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .modal-box {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.info-modal.closing .modal-box {
    animation: slideDown 0.3s cubic-bezier(0.7, 0, 0.84, 0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-title {
    padding: 36px 36px 24px;
    font-size: 32px;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    padding: 36px;
    overflow-y: auto;
    line-height: 1.7;
}

.rule-item,
.terms-section,
.prize-category {
    margin-bottom: 36px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.rule-item:hover,
.terms-section:hover,
.prize-category:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.rule-item h4,
.terms-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-item h4::before,
.terms-section h4::before {
    content: "📋";
    font-size: 24px;
}

.prize-category h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-category h4::before {
    content: "🏆";
    font-size: 28px;
}

.rule-item ul,
.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.rule-item li,
.terms-section li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rule-item li::before,
.terms-section li::before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.prize-amount {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.prize-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.prize-note {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.08) 0%,
        rgba(var(--accent-rgb), 0.05) 100%
    );
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.prize-note p {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 15px;
}

.prize-note p:last-child {
    margin-bottom: 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 3000;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--accent);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 2px solid var(--border);
    padding: 70px 0 30px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary) 50%,
        transparent 100%
    );
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 14px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    /* Make nav container positioned so the dropdown can align to it without affecting desktop */
    .nav-container {
        position: relative;
    }

    /* Mobile dropdown: card-like centered menu with smooth scale animation */
    .nav-links {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) scaleY(0);
        transform-origin: top center;
        width: min(92%, 420px);
        max-width: 420px;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
        border-radius: 14px;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02),
            rgba(0, 0, 0, 0.03)
        );
        background: var(--surface);
        opacity: 0;
        pointer-events: none;
        transition: transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1),
            opacity 180ms ease;
        z-index: 1200;
    }

    /* When active, reveal with scale animation */
    .nav-links.active {
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    /* Larger tap targets, left-aligned labels and subtle separators */
    .nav-link {
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        font-size: 16px;
        color: var(--text);
        border-radius: 10px;
        background: transparent;
        transition: background 160ms ease, color 120ms ease;
        display: block;
    }

    .nav-link + .nav-link {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-top-color: var(--border);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--text);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Reorder hero elements: logo first, banner second, content third */
    .hero-content {
        display: flex;
        flex-direction: column;
        order: 3;
    }

    .hero-logo {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-image {
        order: 2;
        display: flex;
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;
    }

    .hero-banner {
        max-width: 92%;
        width: 100%;
        height: auto;
    }

    .hero-tagline {
        order: 4;
    }

    .hero-subtitle {
        order: 5;
    }

    .hero-stats {
        order: 6;
    }

    .hero-actions {
        order: 7;
    }

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

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-select-group {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .submission-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

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

    .section-title {
        font-size: 32px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    .modal-box {
        max-height: 90vh;
    }

    .modal-title {
        font-size: 24px;
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.active {
    display: flex;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.success-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--success);
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(var(--success-rgb), 0.3));
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-message strong {
    color: var(--text-primary);
    font-weight: 600;
}

.success-details {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.success-details p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 15px;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
}

@media (max-width: 768px) {
    .success-modal-content {
        padding: 32px 24px;
    }

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

    .success-message {
        font-size: 16px;
    }

    .success-details {
        padding: 20px;
    }

    .success-details p {
        font-size: 14px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

    /* Enhanced Mobile Styles */

    /* Navigation improvements */
    .nav-container {
        padding: 12px 20px;
    }

    .nav-brand {
        gap: 10px;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .brand-text {
        font-size: 14px;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
    }

    /* Hero section improvements */
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-logo {
        display: flex;
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .hero-stat {
        width: 100%;
        padding: 16px;
    }

    /* Category cards improvements */
    .category-card {
        min-height: 280px;
    }

    .category-card h3 {
        font-size: 22px;
    }

    .category-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .category-card .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Section spacing */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    /* Modal improvements */
    .modal-box {
        width: 95%;
        max-width: 100%;
        margin: 20px;
        max-height: 85vh;
    }

    .submission-modal .modal-box {
        max-height: 95vh;
    }

    .modal-header {
        padding: 16px;
        position: relative; /* Changed from sticky to allow scrolling */
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
    }

    .modal-title {
        font-size: 20px;
    }

    .selected-category {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px 12px; /* Reduced left-right padding from 20px to 12px */
    }

    .form-section {
        margin-bottom: 28px;
    }

    .form-section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Form improvements */
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    /* File upload improvements */
    .file-upload-area {
        padding: 32px 20px;
        min-height: 200px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .upload-text {
        font-size: 15px;
    }

    .upload-hint {
        font-size: 12px;
    }

    .file-preview {
        padding: 16px;
        gap: 12px;
    }

    .preview-image {
        width: 80px;
        height: 80px;
    }

    .file-info h4 {
        font-size: 14px;
    }

    .file-meta {
        font-size: 12px;
    }

    /* Checkbox improvements */
    .checkbox-label {
        font-size: 14px;
        line-height: 1.5;
        padding-left: 28px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        left: 0;
    }

    /* Button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Toast improvements */
    .toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        font-size: 14px;
        padding: 14px 18px;
    }

    /* Footer improvements */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-brand h3 {
        font-size: 18px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 14px;
        padding: 6px 0;
    }

    .footer-bottom {
        margin-top: 32px;
        padding-top: 20px;
        font-size: 13px;
    }

    /* Info modals improvements */
    .info-modal .modal-box {
        max-height: 90vh;
    }

    .modal-content h3 {
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .modal-content h4 {
        font-size: 17px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .modal-content p,
    .modal-content li {
        font-size: 14px;
        line-height: 1.6;
    }

    .modal-content ul,
    .modal-content ol {
        padding-left: 24px;
    }

    /* Form message improvements */
    .form-message {
        font-size: 14px;
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .error {
        font-size: 12px;
        margin-top: 4px;
    }
}

/* Extra small devices - phones in portrait */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

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

    .category-card {
        min-height: 260px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .modal-box {
        margin: 10px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .selected-category {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px 10px; /* Reduced left-right padding even more for small phones */
    }

    .form-section-title {
        font-size: 16px;
    }

    .success-modal-content {
        padding: 24px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .success-title {
        font-size: 20px;
    }

    .success-message {
        font-size: 15px;
    }

    .success-details {
        padding: 16px;
    }

    .success-details p {
        font-size: 13px;
        gap: 8px;
    }

    .form-content {
        margin-top: 30px;
        padding: 0px;
        overflow-y: auto;
        max-height: calc(90vh - 200px);
    }

    .form-header {
        padding: 36px 15px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-grid {
        gap: 10px;
    }
}
