@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bs-primary: #ff0050;
    --bs-secondary: #280018;
    --bs-danger: #ff0050;
    --bs-white: #ffffff;
    --bs-dark: #1c0009;
    --bg-main: #0d0004;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-pink: #ff0050;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: linear-gradient(#150006, rgba(0,0,0,0) 100%), #0d0004;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    filter: sepia(35%);
}

/* Scanlines effect EXACT comme SWAGHACK */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* Navbar */
.navbar {
    background: rgba(28, 0, 9, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-pink);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 0, 80, 0.8);
}

.nav-links {
    display: flex;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--bs-primary);
    text-shadow: 0 0 10px rgba(255, 0, 80, 0.6);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language {
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.language:hover {
    color: var(--bs-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
}

.user-profile span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bs-primary);
}

/* Landing Page - EXACT SWAGHACK STYLE */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-header {
    margin-bottom: 3rem;
}

.landing-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--bs-primary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 0, 80, 0.8);
    filter: sepia(0%);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    filter: sepia(0%);
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-style: italic;
}

.warning-banner {
    background: rgba(38, 0, 11, 0.8);
    border: 2px solid var(--border-pink);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.2);
    filter: sepia(0%);
}

.warning-banner h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.warning-banner p {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 0.85rem;
    font-style: italic;
}

/* CTA Button - EXACT SWAGHACK STYLE */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgb(38,0,11);
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 6px double var(--bs-primary);
    border-right-style: solid;
    border-left-style: solid;
    text-shadow: 0 0 8px var(--bs-primary);
    font-size: 14px;
    cursor: pointer;
    filter: sepia(0%);
}

.cta-button:hover {
    background: rgba(255, 0, 80, 0.1);
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.6);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: rgba(28, 0, 9, 0.95);
    border: 3px solid var(--border-pink);
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 50px rgba(255, 0, 80, 0.3);
    filter: sepia(0%);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 0, 80, 0.8);
}

.login-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 0, 80, 0.05);
    border: 1px solid rgba(255, 0, 80, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--bs-primary);
    background: rgba(255, 0, 80, 0.1);
}

.feature-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.discord-login-btn {
    width: 100%;
    padding: 1.2rem;
    background: #5865F2;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.login-info {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-style: italic;
}

/* Roulette Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.info-banner {
    background: rgba(255, 0, 80, 0.1);
    border: 2px solid var(--border-pink);
    padding: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    filter: sepia(0%);
}

.roulette-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
    overflow: hidden;
    background: rgba(28, 0, 9, 0.8);
    border: 3px solid var(--border-pink);
    padding: 3rem 0;
    box-shadow: 0 0 50px rgba(255, 0, 80, 0.3);
    filter: sepia(0%);
}

.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.roulette-items {
    display: flex;
    gap: 20px;
    padding: 0 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-item {
    min-width: 160px;
    height: 160px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 0, 80, 0.3);
    flex-shrink: 0;
    position: relative;
}

/* Rarity colors - gradient boxes like SWAGHACK CS2 cards */
.roulette-item[data-rarity="common"] {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-color: #666;
}

.roulette-item[data-rarity="rare"] {
    background: linear-gradient(135deg, #5c8fa8 0%, #3a6078 100%);
    border-color: #5c8fa8;
}

.roulette-item[data-rarity="epic"] {
    background: linear-gradient(135deg, #9d5fb5 0%, #6d3f85 100%);
    border-color: #9d5fb5;
}

.roulette-item[data-rarity="mythic"] {
    background: linear-gradient(135deg, #c9302c 0%, #990000 100%);
    border-color: #c9302c;
}

.roulette-item[data-rarity="ultra"] {
    background: linear-gradient(135deg, #ff0050 0%, #b8155e 100%);
    border-color: #ff0050;
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.5);
}

.item-content {
    text-align: center;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.roulette-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bs-primary) 40%, var(--bs-primary) 60%, transparent 100%);
    z-index: 10;
    box-shadow: 0 0 30px var(--bs-primary);
}

.roulette-indicator::before,
.roulette-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.roulette-indicator::before {
    top: -12px;
    border-bottom: 16px solid var(--bs-primary);
}

.roulette-indicator::after {
    bottom: -12px;
    border-top: 16px solid var(--bs-primary);
}

.spin-button {
    display: block;
    margin: 2rem auto;
    padding: 1.5rem 4rem;
    background: var(--bs-primary);
    color: white;
    border: 2px solid var(--bs-primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.5);
    filter: sepia(0%);
}

.spin-button:not(:disabled):hover {
    background: transparent;
    color: var(--bs-primary);
    transform: translateY(-4px);
    box-shadow: 0 0 50px rgba(255, 0, 80, 0.8);
}

.spin-button:disabled {
    background: #333;
    border-color: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.roulette-status {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Help Button - SWAGHACK BLUE STYLE */
.help-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: #1e4d7b;
    border: 2px solid #4a9bd8;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 1000;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 0 20px rgba(74, 155, 216, 0.3);
    transition: all 0.3s ease;
    filter: sepia(0%);
}

.help-button:hover {
    background: #2a5f99;
    box-shadow: 0 0 40px rgba(74, 155, 216, 0.6);
}

/* Modal - SWAGHACK BLUE MODAL STYLE */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e4d7b;
    border: 3px solid #4a9bd8;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 60px rgba(74, 155, 216, 0.5);
    filter: sepia(0%);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: white;
    color: #1e4d7b;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    letter-spacing: 2px;
}

.modal ul {
    list-style: none;
    padding-left: 0;
}

.modal li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
    color: white;
    font-size: 0.95rem;
}

.modal li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a9bd8;
    font-weight: 700;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .roulette-item {
        min-width: 120px;
        height: 120px;
    }
    
    .help-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}