@font-face {
    font-family: 'Agatho';
    src: url('./fonts/Agatho_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Agatho';
    src: url('./fonts/Agatho_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Agatho';
    src: url('./fonts/Agatho_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Agatho';
    src: url('./fonts/Agatho_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* Color Palette & Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --gold: #BBE765;
    --gradient-primary: linear-gradient(to bottom left, #BBE765, #4C7F00);
    --black: #000000;
    --white: #FFFFFF;
    --gray: #E5E7EB;
    --transparent-black: rgba(0, 0, 0, 0.7);
    
    --font-display: 'Agatho', 'Cinzel', Georgia, serif;
    --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flow-root;
}

/* Hide native browser scrollbar */
::-webkit-scrollbar {
    display: none;
}
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hide-target-cursor, .hide-target-cursor * {
    cursor: none !important;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Typography Hierarchy */
h1 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    line-height: 64px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
}

p {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
}

label, .ui-label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

/* Navigation */
.top-nav {
    background: transparent;
    height: 55px;
    width: 100%;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 80px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
    margin: 0;
    letter-spacing: 5px;
}

.welcome-text {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--white);
    margin-top: 15px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-text span {
    color: var(--white);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    text-decoration: none;
    line-height: 33px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background-color: var(--bg-secondary);
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--gold);
    border-radius: 0px;
    margin: 40px auto;
    width: 100%;
    max-width: 1440px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero p {
    margin-top: 16px;
    color: var(--white);
}

.gold-line {
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 32px auto 0;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* Grid Layout */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

/* Cards */
.category-card {
    background: #1A1A1A;
    border: none;
    border-radius: 0px;
    padding: 40px;
    transition: background-color 0.3s ease;
    position: relative;
}

.category-card:hover, .category-card[data-super-hover-active] {
    background: var(--gradient-primary);
    z-index: 10;
}

.category-card:focus-within {
    background: var(--gradient-primary);
    z-index: 20;
}

.category-card .category-title {
    color: var(--gold);
    transition: color 0.3s ease;
}

.status-badge {
    color: var(--gold);
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
    letter-spacing: 2px;
}

.category-card label,
.category-card input,
.category-card textarea {
    color: var(--white);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, height 0.2s ease;
}

.category-card:hover .char-counter,
.category-card[data-super-hover-active] .char-counter,
.category-card:focus-within .char-counter {
    color: var(--black);
    opacity: 0.7;
}

.category-card input::placeholder, 
.category-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.category-card input,
.category-card textarea {
    border-color: var(--gray);
}

.category-card input:focus,
.category-card textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.category-card .readonly-input {
    color: var(--gold);
    border-color: var(--gold);
    cursor: default;
    user-select: none;
}

.category-card:hover .readonly-input,
.category-card[data-super-hover-active] .readonly-input,
.category-card:focus-within .readonly-input {
    color: var(--black);
    border-color: var(--black);
}

.category-card:hover .category-title,
.category-card[data-super-hover-active] .category-title,
.category-card:focus-within .category-title {
    background: none;
    -webkit-text-fill-color: var(--black);
    color: var(--black);
}

.category-card:hover label,
.category-card[data-super-hover-active] label,
.category-card:focus-within label,
.category-card:hover input,
.category-card[data-super-hover-active] input,
.category-card:focus-within input,
.category-card:hover textarea,
.category-card[data-super-hover-active] textarea,
.category-card:focus-within textarea {
    color: var(--black);
}

.category-card:hover input::placeholder, 
.category-card[data-super-hover-active] input::placeholder, 
.category-card:focus-within input::placeholder,
.category-card:hover textarea::placeholder,
.category-card[data-super-hover-active] textarea::placeholder,
.category-card:focus-within textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.category-card:hover input,
.category-card[data-super-hover-active] input,
.category-card:focus-within input,
.category-card:hover textarea,
.category-card[data-super-hover-active] textarea,
.category-card:focus-within textarea {
    border-color: rgba(0, 0, 0, 0.3);
}

.category-card:hover input:focus,
.category-card[data-super-hover-active] input:focus,
.category-card:focus-within input:focus,
.category-card:hover textarea:focus,
.category-card[data-super-hover-active] textarea:focus,
.category-card:focus-within textarea:focus {
    border-color: var(--black);
    background: rgba(0, 0, 0, 0.05);
}

/* Custom Dropdown */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    border: 1px solid var(--gray);
    border-top: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.custom-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-pfp {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--gray);
}

.input-pfp {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    background-color: var(--gray);
}

.dropdown-item:hover,
.dropdown-item.kb-active {
    background-color: #333333;
    color: var(--white);
}

.dropdown-alert {
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gold);
    cursor: default;
    background: transparent;
}

.category-card:hover .custom-dropdown,
.category-card:focus-within .custom-dropdown {
    border-color: rgba(0, 0, 0, 0.3);
}

.login-overlay {
    background-color: var(--bg-secondary);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.custom-dropdown::-webkit-scrollbar {
    width: 8px;
}
.custom-dropdown::-webkit-scrollbar-track {
    background: #1A1A1A;
}
.custom-dropdown::-webkit-scrollbar-thumb {
    background: var(--gray);
}

.category-title {
    font-size: 32px;
    margin-bottom: 8px;
    text-align: left;
}

.category-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    text-align: left;
    transition: color 0.3s ease;
}

.category-card:hover .category-desc,
.category-card:focus-within .category-desc {
    color: rgba(0, 0, 0, 0.7);
}

/* Forms & Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    color: var(--gray);
    opacity: 0.5;
    pointer-events: none;
    font-family: var(--font-body);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.slot-counter-wrap {
    display: inline-flex;
    overflow: hidden;
    height: 14px;
    line-height: 14px;
}

.slot-track-container {
    display: inline-block;
    height: 100%;
}

.slot-digit-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-digit {
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="text"], textarea {
    background: transparent;
    border: 1px solid var(--gray);
    border-radius: 0px;
    padding: 12px 16px;
    padding-right: 48px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 16px;
    color: var(--white);
    transition: border-color 0.3s ease;
    width: 100%;
}

textarea {
    resize: none !important;
    overflow: hidden;
    min-height: 42px;
    height: 42px;
}

input[type="text"]::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}


/* Buttons */
.submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
}

.primary-btn {
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    padding: 0 32px;
    border: 0px solid var(--gray);
    border-radius: 0px;
    height: 54px;
    width: 150px;
    max-width: 100%;
    box-shadow: none;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.btn-text {
    position: absolute;
    width: max-content;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.default-text {
    transform: translateY(0);
    opacity: 1;
}

.status-text {
    transform: translateY(100%);
    opacity: 0;
}

.primary-btn.show-status .default-text {
    transform: translateY(-100%);
    opacity: 0;
}

.primary-btn.show-status .status-text {
    transform: translateY(0);
    opacity: 1;
}

.twitch-btn:focus, .twitch-btn:active {
    outline: none !important;
}

.primary-btn::before, .primary-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.twitch-btn:hover, .twitch-btn[data-super-hover-active] {
    color: #ffffff !important;
    background-color: #772ce8 !important;
}

.primary-btn.show-status::before, .primary-btn.show-status::after {
    border-color: currentColor;
}

.primary-btn::before {
    top: 0; left: 0;
    border-right: none;
    border-bottom: none;
}
.primary-btn::after {
    bottom: 0; right: 0;
    border-left: none;
    border-top: none;
}

.primary-btn:hover, .primary-btn[data-super-hover-active] {
    color: var(--gold);
    transform: scale(1.02);
}

.primary-btn:hover::before, .primary-btn:hover::after,
.primary-btn[data-super-hover-active]::before, .primary-btn[data-super-hover-active]::after {
    width: 100%;
    height: 100%;
    border-color: currentColor;
}

/* Responsive */
@media (max-width: 1023px) {
    .categories-grid {
        gap: 24px;
        margin-bottom: 24px;
    }
    h1 { font-size: 56px; line-height: 56px; }
    .hero { padding: 40px 32px; }
    .container { padding: 0 32px 40px; }
}

@media (max-width: 599px) {
    h1 { font-size: 36px; line-height: 40px; }
    .hero-content > div { gap: 12px !important; }
    .hero-content img { height: 48px !important; }
    .hero-content h1 { font-size: 7.5vw; line-height: 48px; letter-spacing: 1px; white-space: nowrap; }
    h2 { font-size: 24px; line-height: 28px; }
    p, .welcome-text { font-size: 14px; }
    .hero { padding: 40px 16px; }
    .container { padding: 0 16px 40px; }
    
    .nav-content { 
        flex-direction: row; 
        gap: 12px; 
        padding: 0 16px; 
    }
    .nav-logo { font-size: 16px; line-height: 16px; }
    .primary-btn { 
        padding: 8px 16px; 
        font-size: 12px; 
        white-space: normal; 
        line-height: 1.2; 
        text-align: center; 
    }
    .btn-text { max-width: calc(100vw - 40px); }
    
    .primary-btn:hover, .primary-btn[data-super-hover-active] {
        color: var(--white);
        transform: none;
    }
    
    .primary-btn:hover::before, .primary-btn:hover::after,
    .primary-btn[data-super-hover-active]::before, .primary-btn[data-super-hover-active]::after {
        width: 20px;
        height: 20px;
        border-color: var(--gray);
    }
}
