/* Common CSS - Shared across all templates */

/* Font Faces */
@font-face {
    font-family: 'Blue Screen Personal Use';
    src: url('/static/fonts/Blue Screen Personal Use.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CaboSoft-ThinDemo';
    src: url('/static/fonts/CaboSoft-ThinDemo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Highup';
    src: url('/static/fonts/highup-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* CSS Variables */
:root {
    --primary: #00ffcc;
    --primary-dark: #00cc99;
    --secondary: #0066ff;
    --accent: #ff00ff;
    --warning: #ff8800;
    --error: #ff0066;
    --text: #ffffff;
    --text-dim: #b0b0b0;
    --bg: #000000;
    --bg-dark: #0a0e27;
    --bg-medium: #151931;
    --bg-overlay: rgba(10, 10, 10, 0.8);
    --glass-bg: rgba(10, 10, 10, 0.3);
    --glass-border: rgba(0, 255, 204, 0.4);
    --glass-hover: rgba(0, 255, 204, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 0 25px rgba(0, 255, 204, 0.4);
    --glow: 0 0 20px rgba(0, 255, 204, 0.3);
    --glow-strong: 0 0 40px rgba(0, 255, 204, 0.6);
}

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

/* Base Body */
html {
    background: var(--bg);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: transparent;
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Section - Glassmorphism */
.section {
    --section-accent: var(--primary);
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid var(--section-accent);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: clamp(1rem, 6vw, 4rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* Section Title */
.section-title {
    font-family: 'CaboSoft-ThinDemo', 'Orbitron', sans-serif;
    font-size: clamp(1.5em, 3vw, 2em);
    color: var(--section-accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Buttons */
.btn {
    display: block;
    margin: 1rem auto;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 204, 0.4);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(145deg, rgba(0, 255, 204, 0.2), rgba(0, 204, 153, 0.15));
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4), 0 0 30px rgba(0, 255, 204, 0.2);
}

.btn:active {
    transform: translateY(0) scale(1);
}

.btn-secondary {
    background: linear-gradient(145deg, rgba(255, 136, 0, 0.2), rgba(255, 0, 102, 0.2));
    border-color: var(--warning);
    color: var(--warning);
}

.btn-secondary:hover {
    background: linear-gradient(145deg, rgba(255, 136, 0, 0.3), rgba(255, 0, 102, 0.3));
    border-color: var(--warning);
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.4), 0 0 30px rgba(255, 0, 102, 0.2);
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.625rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.0625rem;
}

input,
select,
textarea {
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    padding: 0.7rem;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid #333333;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.5), inset 0 0 12px rgba(0, 255, 204, 0.1);
    background: rgba(0, 30, 50, 0.9);
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 255, 204, 0.4);
}

/* Message States */
.success-message {
    display: none;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 1.25rem 0;
}

.error-message {
    display: none;
    color: var(--error);
    margin-top: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Psychedelic Background */
.psychedelic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: var(--bg);
    overflow: hidden;
}

/* Common Animations */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.8));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 0, 0.5));
    }
}

@keyframes titlePulse {

    0%,
    100% {
        text-shadow: var(--glow);
        transform: scale(1);
    }

    50% {
        text-shadow: var(--glow-strong);
        transform: scale(1.02);
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes blink {

    0%,
    70% {
        opacity: 1;
    }

    71%,
    100% {
        opacity: 0;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.5em;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        max-width: 100%;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.3em;
        letter-spacing: 1px;
        gap: 0.3rem;
    }

    .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
}
