/* 
Theme Name: Reference Master Core
Description: Structural styles from the reference site, using CSS variables for theming.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* DEFAULT VARIABLES (Neon) - Overridden by theme files */
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --color-primary: #22d3ee;
    --color-secondary: #d946ef;
    --color-accent: #8b5cf6;

    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: #1e293b;
    --border-hover: #22d3ee;

    --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* --- BASE --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- COMPONENTS --- */

/* Button */
.btn-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-ref-primary {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: white;
    /* Always white on gradient */
    border: 1px solid transparent;
}

.btn-ref-primary:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-ref-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-ref-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-primary);
}

.btn-ref-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-ref-outline:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Gradient Card */
.gradient-card {
    position: relative;
    padding: 1px;
    border-radius: 1rem;
    background: var(--bg-card);
    transition: transform 0.3s, background 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
}

.gradient-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.gradient-card-inner {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gradient-card-highlight {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-accent), var(--color-secondary));
    border: none;
}

.gradient-card-highlight .gradient-card-inner {
    background: rgba(15, 23, 42, 0.9);
    /* Slightly transparent to show gradient */
}

/* Section Title */
.section-title {
    margin-bottom: 3rem;
}

.section-title.text-center {
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title-line {
    height: 0.25rem;
    width: 6rem;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 9999px;
    margin-top: 1.5rem;
}

.section-title.text-center .section-title-line {
    margin-left: auto;
    margin-right: auto;
}

/* --- UTILITIES --- */
.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}