/* Custom styling for STA Timetabler Placeholder Site */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(13, 17, 28, 0.65);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #6366f1;
    --color-primary-glow: rgba(99, 102, 241, 0.15);
    --color-primary-hover: #4f46e5;
    
    --color-accent: #38bdf8;
    --color-accent-glow: rgba(56, 189, 248, 0.15);
    
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.1);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: drift-slow 25s infinite alternate ease-in-out;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation: drift-slow 30s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 30%;
    left: 45%;
    opacity: 0.15;
    animation: pulse-slow 15s infinite alternate ease-in-out;
}

@keyframes drift-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.15);
    }
}

@keyframes pulse-slow {
    0% {
        opacity: 0.1;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.22;
        transform: scale(1.1);
    }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 720px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 10;
}

/* Header & Logo */
header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    transition: var(--transition-snappy);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo svg {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

/* Premium Card Section */
.card {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 40%), var(--bg-card);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.card:hover {
    border-color: var(--border-card-hover);
}

/* Badge styling */
.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.05);
}

/* Typography */
h1.gradient-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

/* Teaser Grid */
.teaser-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 0.85rem 1.75rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
    gap: 1.5rem;
}

.teaser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.teaser-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.teaser-value {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.teaser-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

/* Pulsing Status indicator */
.ready-pulse {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ready-pulse::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
    animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px var(--color-success);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
        box-shadow: 0 0 16px var(--color-success);
    }
}

/* Schedule Interactive Widget Preview */
.schedule-preview {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 11, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: left;
    margin-bottom: 2.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.schedule-preview:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(99, 102, 241, 0.08);
}

.preview-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.preview-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.5rem;
    letter-spacing: 0.02em;
}

.preview-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-heading);
    min-width: 85px;
}

.preview-event {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    border-left: 3px solid;
    transition: var(--transition-snappy);
}

.preview-event:hover {
    transform: translateX(4px);
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.event-blue {
    background: rgba(99, 102, 241, 0.06);
    border-left-color: var(--color-primary);
}

.event-purple {
    background: rgba(168, 85, 247, 0.06);
    border-left-color: #a855f7;
}

.event-green {
    background: rgba(16, 185, 129, 0.06);
    border-left-color: var(--color-success);
}

.event-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.event-location {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Email Form Styling */
.notify-form {
    width: 100%;
    max-width: 500px;
}

.input-wrapper {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.375rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.12),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    width: 100%;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border: none;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-snappy);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.input-wrapper button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.input-wrapper button:active {
    transform: translateY(1px);
}

.arrow-icon {
    transition: var(--transition-snappy);
}

.input-wrapper button:hover .arrow-icon {
    transform: translateX(3px);
}

/* Footer Section */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
    pointer-events: none;
}

.toast {
    background: rgba(13, 17, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.toast-success {
    border-left: 3px solid var(--color-success);
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
        gap: 1.75rem;
    }
    
    .card {
        padding: 2.25rem 1.5rem;
        border-radius: 20px;
    }
    
    h1.gradient-text {
        font-size: 2rem;
    }
    
    .teaser-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .teaser-divider {
        width: 80%;
        height: 1px;
    }
    
    .preview-time {
        min-width: 75px;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    
    .input-wrapper input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 0.85rem 1rem;
    }
    
    .input-wrapper button {
        padding: 0.85rem;
        justify-content: center;
        border-radius: 12px;
    }
}
