/* css/theme.css - GLOBAL STYLES */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

:root {
    --primary-red: #CC334F;
    --primary-hover: #b02941;
    --bg-base: #050505;
    --bg-shift: #141414;
    --bg-panel: rgba(17, 17, 17, 0.85);
    --border: rgba(255, 255, 255, 0.05);
    --text-pure: #ffffff;
    --text-muted: #737373;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-shift) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-pure);
    font-family: 'League Spartan', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 4px;
}

/* Typography & Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


h3 {
    font-weight: 300;
    letter-spacing: 2px;
}

h2 {
    text-align: center;
    font-size: 50px;
    font-weight: 100px;
}

h1 {
    font-size: 400px;
}
.text-muted {
    color: var(--text-muted);
}

/* Buttons & Inputs */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(204, 51, 79, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-pure);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    background-color: rgba(5, 5, 5, 0.6);
    border: 1px solid var(--border);
    color: var(--text-pure);
    padding: 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(204, 51, 79, 0.2);
}

/* =========================================
    Global Footer Styles
   ========================================= */
.portal-footer {
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
    font-weight: 500;

    /* The Alignment Fix */
    margin-left: -2px;
    /* Pulls the text flush left to counter the font's natural kerning */
    padding-left: 0;
    letter-spacing: 1px;
    /* Tightening the tracking slightly in the footer keeps the box cleaner */
}

.slogan {
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--primary-red);
    /* Makes the slogan pop */
}

.footer-link-groups {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    text-align: left;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column h4 {
    color: var(--text-pure);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover,
.footer-column a:focus {
    color: var(--primary-red);
    transform: translateX(4px);
    /* Sleek interaction effect */
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-link-groups {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-column a:hover {
        transform: translateY(-2px);
    }
}

/* Override default browser link colors (fixes the purple visited state) */
.creator-link,
.creator-link:visited,
.creator-link:active {
    color: var(--text-pure);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.creator-link:hover,
.creator-link:focus {
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(204, 51, 79, 0.5);
}

.legal-nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.back-link {
    color: var(--text-pure);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-red);
}

.nav-brand {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.legal-container {
    max-width: 800px;
    margin: 2rem auto 5rem;
    padding: 0 2rem;
    flex: 1;
}

.legal-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin: 2.5rem 0 1rem;
}

.legal-content p,
.legal-content li {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}