/**
 * Curriculum Council Feedback Form Styles
 * Extracted from Vibe Coding Launchpad (slide 14) for exact consistency
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-primary: #000000;
    --bg-elevated: #0a0f14;
    --bg-surface: #111820;
    --bg-card: rgba(10, 15, 20, 0.95);
    --bg-card-hover: rgba(15, 22, 30, 0.9);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 255, 255, 0.15);

    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-glow: rgba(20, 184, 166, 0.3);

    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.3);

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);

    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.15);
    --warning: #facc15;
    --warning-muted: rgba(250, 204, 21, 0.15);
    --error: #ef4444;
    --error-muted: rgba(239, 68, 68, 0.15);

    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Ambient opacity for background effects */
    --ambient-opacity: 1;
    --grid-color: rgba(255, 255, 255, 0.03);
}

/* ==================== LIGHT MODE ==================== */
/* Matching VVUSD UI Library design system */
[data-theme="light"] {
    --bg-primary: #F9FAFB;
    --bg-elevated: #FFFFFF;
    --bg-surface: #F3F4F6;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.75);

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    --border-subtle: #F3F4F6;
    --border-default: rgba(2, 6, 23, 0.08);
    --border-accent: #D1D5DB;

    --teal-glow: rgba(16, 185, 129, 0.25);
    --purple-glow: rgba(139, 92, 246, 0.25);
    --blue-glow: rgba(59, 130, 246, 0.25);

    --shadow-lg: 0 10px 15px -3px rgba(2, 6, 23, 0.1), 0 4px 6px -4px rgba(2, 6, 23, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(2, 6, 23, 0.1), 0 8px 10px -6px rgba(2, 6, 23, 0.1);

    --ambient-opacity: 0.4;
    --grid-color: rgba(2, 6, 23, 0.03);
}

/* Light mode - Header */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 1px 3px rgba(2, 6, 23, 0.05);
}

/* Light mode - Solid background base */
[data-theme="light"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #F9FAFB;
    z-index: -1;
}

/* Light mode - Landing background */
[data-theme="light"] .landing-bg {
    opacity: var(--ambient-opacity);
}

[data-theme="light"] .landing-grid {
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
}

[data-theme="light"] .landing-orb {
    opacity: 0.35;
}

/* Light mode - Glass cards */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 10px 15px rgba(2, 6, 23, 0.06);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 6px 15px rgba(2, 6, 23, 0.08), 0 0 12px rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .glass-card--highlight {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(2, 6, 23, 0.08);
}

[data-theme="light"] .glass-card--highlight:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

/* Light mode: Gradient pill button (indigo-violet) */
[data-theme="light"] .btn--shiny {
    background: linear-gradient(135deg, #3730a3, #4f46e5, #6366f1) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4),
                0 2px 6px rgba(2, 6, 23, 0.12) !important;
    animation: none !important;
    overflow: hidden;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

/* Subtle glass sheen overlay */
[data-theme="light"] .btn--shiny::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 100%) !important;
    border-radius: inherit !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transition: opacity 0.3s ease !important;
}

/* No ::after pseudo in resting state */
[data-theme="light"] .btn--shiny::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #312e81, #4338ca, #4f46e5) !important;
    border-radius: inherit !important;
    opacity: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    filter: none !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
}

[data-theme="light"] .btn--shiny span,
[data-theme="light"] .btn--shiny i,
[data-theme="light"] .btn--shiny svg {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn--shiny:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5),
                0 4px 10px rgba(2, 6, 23, 0.12) !important;
}

/* Darker gradient shows through on hover for depth */
[data-theme="light"] .btn--shiny:hover::after {
    opacity: 1 !important;
}

[data-theme="light"] .btn--shiny:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35),
                0 2px 6px rgba(2, 6, 23, 0.1) !important;
}

/* Light mode - Forms */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(2, 6, 23, 0.08);
    color: #1F2937;
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
    color: #9CA3AF;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
    background: rgba(255, 255, 255, 0.75);
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .form-label {
    color: #1F2937;
}

/* Light mode - Rating Buttons */
[data-theme="light"] .rating-btn {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(2, 6, 23, 0.08);
    color: #6B7280;
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
}

[data-theme="light"] .rating-btn:hover,
[data-theme="light"] .rating-btn.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #6366f1;
}

/* Light mode - Status messages */
[data-theme="light"] .status-message.success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
}

[data-theme="light"] .status-message.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Theme toggle button */
.theme-toggle {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
}

.theme-toggle:hover {
    border-color: var(--border-accent);
    transform: scale(1.05);
    background: var(--bg-card-hover);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

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

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

/* Smooth transition for theme switching */
body {
    transition: background 0.4s ease, color 0.4s ease;
}

.header,
.glass-card,
.form-input,
.form-select,
.form-textarea,
.btn--shiny {
    transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ==================== LANDING BACKGROUND EFFECTS ==================== */
.landing-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Grid pattern overlay */
.landing-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Mouse-following gradient orbs */
.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: transform 0.3s ease-out;
}

.landing-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.landing-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-divider {
    width: 1px;
    height: 24px;
    background: var(--border-default);
}

.logo-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 120px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 85vw;
}

/* ==================== TYPOGRAPHY ==================== */
.text-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--teal-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.text-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.text-section {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.text-body {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
}

.text-body-lg {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 1000px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--teal-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

/* ==================== GLASS CARDS ==================== */
.glass-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(20, 184, 166, 0.02);
}

.glass-card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(20, 184, 166, 0.15),
        inset 0 0 30px rgba(20, 184, 166, 0.03);
}

.glass-card--highlight {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(0, 0, 0, 0.85);
}

.glass-card--highlight:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(20, 184, 166, 0.2),
        inset 0 0 30px rgba(20, 184, 166, 0.03);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 28px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 18px 22px;
    font-size: 1.125rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal-400);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15), 0 0 20px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: none;
    overflow: hidden;
    field-sizing: content;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: #000000;
    box-shadow: 0 4px 20px var(--teal-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--teal-glow);
}

/* Shiny button gradient animation */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Shiny animated border button */
.btn--shiny {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 1.25rem 2.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(#000000, #000000) padding-box,
        conic-gradient(
            from var(--gradient-angle),
            transparent 0%,
            var(--teal-500) 10%,
            var(--teal-400) 20%,
            var(--purple-400) 30%,
            var(--teal-500) 40%,
            transparent 50%
        ) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    isolation: isolate;
    animation: shiny-border-spin 3s linear infinite;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@keyframes shiny-border-spin {
    to { --gradient-angle: 360deg; }
}

.btn--shiny:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
                0 0 30px rgba(20, 184, 166, 0.4);
}

.btn--shiny:active {
    transform: translateY(1px);
}

.btn--shiny.copied {
    background: linear-gradient(rgba(10, 15, 20, 0.95), rgba(10, 15, 20, 0.95)) padding-box,
        conic-gradient(
            from var(--gradient-angle),
            transparent 0%,
            #22c55e 10%,
            #4ade80 20%,
            #22c55e 30%,
            transparent 40%
        ) border-box;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn--shiny::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.08), transparent 40%);
    pointer-events: none;
}

.btn--shiny span,
.btn--shiny i,
.btn--shiny svg {
    position: relative;
    z-index: 2;
}

/* ==================== RATING ==================== */
.rating-container {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.rating-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 1.125rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.rating-btn:hover,
.rating-btn.selected {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--teal-400);
    color: var(--teal-400);
}

/* Variable width rating buttons (for Yes/No/Maybe text) */
.rating-btn--text {
    width: auto;
    padding: 0 24px;
}

/* ==================== STATUS MESSAGES ==================== */
.status-message {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    display: none;
    font-size: 0.9375rem;
}

.status-message.success {
    display: block;
    background: var(--success-muted);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.status-message.error {
    display: block;
    background: var(--error-muted);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* ==================== SPINNER ==================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-top-color: var(--teal-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.spinner--white {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: white;
}

.btn--loading {
    position: relative;
    color: var(--teal-400) !important;
    background: rgba(20, 184, 166, 0.1) !important;
    border-color: var(--teal-400) !important;
}

.btn--loading .spinner {
    border-color: rgba(20, 184, 166, 0.3);
    border-top-color: var(--teal-400);
}

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

/* ==================== FORM SECTIONS ==================== */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section-label {
    color: var(--teal-400);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

[data-theme="light"] .form-section {
    border-bottom-color: rgba(2, 6, 23, 0.08);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .logo-divider,
    .logo-subtitle {
        display: none;
    }

    .main-content {
        padding: 100px 20px 40px;
    }

    .glass-card {
        padding: 24px;
    }

    .rating-container {
        justify-content: center;
    }
}
