/* CryptoLotto - main.css */
/* Shared styles for all screen sizes (Updated for Batch 3 & Logo Colors) */

/* Import Google Font for a stunning UI */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Define CSS Variables for easy theme management based on new logo */
:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --accent-primary: #58A6FF;
    --accent-gold: #F7B733; /* The stunning gold from your logo */
    --accent-green: #238636;
    --accent-red: #DA3633;
    --border-color: #30363D;
    --font-family: 'Poppins', sans-serif;
}

/* Basic Reset and Body Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* General Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #82baff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-gold), #e8a82d);
    color: #0D1117;
    box-shadow: 0 4px 15px rgba(247, 183, 51, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 183, 51, 0.3);
}

/* Header Styling */
.site-header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: var(--accent-gold); /* Using logo color */
}

/* Footer Styling */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    position: relative;
}

/* --- Online/Offline Status Indicator --- */
#online-status {
    position: fixed;
    bottom: 80px; /* Position above mobile nav */
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#online-status.show {
    opacity: 1;
    visibility: visible;
    bottom: 90px;
}

#online-status.online {
    background-color: var(--accent-green);
}

#online-status.offline {
    background-color: var(--accent-red);
}

@media (min-width: 769px) {
    #online-status {
        bottom: 20px; /* Adjust for desktop view */
    }
    #online-status.show {
        bottom: 30px;
    }
}