/* BetTilt - Minimalist Mobile-First Design */
/* Colors: Blue, Bright Blue, Gold */

:root {
    --primary-blue: #1a4d8c;
    --bright-blue: #0066ff;
    --gold: #ffc700;
    --gold-dark: #e6b300;
    --dark-bg: #0a1628;
    --light-bg: #f5f7fa;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --border-color: #2a3f5f;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Date Update Banner */
.date {
    background: rgba(0, 102, 255, 0.1);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.date img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.updated {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.updated time {
    color: var(--gold);
    font-weight: 500;
}

/* Header */
.header {
    background: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--bright-blue);
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Hamburger Menu Toggle */
#menu-toggle {
    display: none;
}

.menu-button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    order: 1;
}

.menu-button {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-toggle:checked ~ .menu-button-container .menu-button:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#menu-toggle:checked ~ .menu-button-container .menu-button:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .menu-button-container .menu-button:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Logo */
.logo {
    order: 2;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(255, 199, 0, 0.3));
}

/* Navigation */
.main-nav {
    order: 3;
    flex: 1;
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(0, 102, 255, 0.2);
    color: var(--gold);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

#menu-toggle:checked ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-blue);
    list-style: none;
    padding: 80px 20px 20px;
    margin: 0;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px var(--shadow);
    z-index: 999;
    overflow-y: auto;
}

#menu-toggle:checked ~ .mobile-menu {
    left: 0;
}

.mobile-menu li {
    margin: 8px 0;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mobile-menu a:hover {
    background: rgba(0, 102, 255, 0.2);
    border-left-color: var(--gold);
    transform: translateX(4px);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
    order: 4;
    flex-shrink: 0;
}

.auth-buttons a {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.sign-in {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.sign-in:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--bright-blue);
}

.sign-up {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 2px 8px rgba(255, 199, 0, 0.4);
}

.sign-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.6);
}

/* Banner */
.banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-blue) 100%);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 199, 0, 0.1) 0%, transparent 70%);
}

.banner-wrap {
    width: 100%;
    height: 100%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.content header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Content Anchors */
.content-anchors {
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    border-left: 4px solid var(--gold);
}

.content-anchors ul {
    list-style: none;
}

.content-anchors li {
    margin: 8px 0;
}

.content-anchors a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.content-anchors a:hover {
    background: rgba(255, 199, 0, 0.2);
    transform: translateX(4px);
}

/* Headings */
h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    color: var(--text-primary);
}

h2:first-of-type {
    margin-top: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px var(--shadow);
    display: block;
}

/* Paragraphs */
p {
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin: 8px 0;
    line-height: 1.8;
}

ul li::marker {
    color: var(--gold);
}

ol li::marker {
    color: var(--gold);
    font-weight: 600;
}

strong {
    color: var(--gold);
    font-weight: 600;
}

/* Table */
.main-table {
    width: 100%;
    margin: 24px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--bright-blue) 100%);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

td {
    color: var(--text-secondary);
    font-size: 14px;
}

tbody tr:hover {
    background: rgba(0, 102, 255, 0.1);
    transition: background 0.3s;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 24px 16px;
    text-align: center;
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
}

footer small {
    color: var(--text-secondary);
    font-size: 13px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--bright-blue);
}

/* Links */
a {
    color: var(--bright-blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--gold);
}

/* Responsive Design */
@media (min-width: 768px) {
    .header {
        padding: 16px 24px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .content {
        padding: 32px;
    }
    
    .content header h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .banner {
        height: 160px;
    }
    
    main {
        padding: 0 24px 40px;
    }
    
    .auth-buttons a {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .header-container {
        padding: 16px 24px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .main-nav {
        display: block;
    }
    
    .menu-button-container {
        display: none;
    }
    
    .auth-buttons a {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 16px 32px;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-menu a {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .content {
        padding: 40px;
    }
    
    main {
        padding: 0 32px 40px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--gold);
    color: var(--dark-bg);
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeIn 0.6s ease-out;
}
