/**
 * CRYPTO MATKA GAMES - Main Stylesheet
 * Mobile-First Responsive Design
 * Dark Theme with Gold, Green, and Red Accents
 */

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffed4e;
}

/* ========================================
   NAVIGATION
======================================== */
.top-nav {
    background: #2d2d2d;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
}

.notification-icon,
.profile-icon {
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.notification-icon:hover,
.profile-icon:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4444;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid #2d2d2d;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background: #ffd700;
    color: #000000;
}

.btn-primary:hover {
    background: #ffed4e;
    color: #000000;
}

.btn-secondary {
    background: #2d2d2d;
    color: #ffffff;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #000000;
}

.btn-success {
    background: #00ff88;
    color: #000000;
}

.btn-success:hover {
    background: #00dd77;
    color: #000000;
}

.btn-warning {
    background: #ffd700;
    color: #000000;
}

.btn-warning:hover {
    background: #ffb700;
    color: #000000;
}

.btn-danger {
    background: #ff4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #ff2222;
    color: #ffffff;
}

.btn-login,
.btn-logout {
    background: #ffd700;
    color: #000000;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-login:hover,
.btn-logout:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-copy {
    background: #2196F3;
    color: #ffffff;
}

/* ========================================
   BOTTOM NAVIGATION (MOBILE)
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d2d2d;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 999;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s;
}

.bottom-nav a.active {
    color: #ffd700;
}

.bottom-nav a:hover {
    color: #ffd700;
}

.bottom-nav .icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.bottom-nav .label {
    font-size: 0.7rem;
    font-weight: bold;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    min-height: calc(100vh - 150px);
    padding-bottom: 100px;
}

/* ========================================
   ALERTS & MESSAGES
======================================== */
.alert {
    max-width: 1200px;
    margin: 20px auto;
    padding: 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background: #00ff88;
    color: #000000;
    border: 3px solid #00dd77;
}

.alert-error {
    background: #ff4444;
    color: #ffffff;
    border: 3px solid #ff2222;
}

.alert-warning {
    background: #ff9800;
    color: #000000;
    border: 3px solid #ff8700;
}

.alert-info {
    background: #2196F3;
    color: #ffffff;
    border: 3px solid #0b7dda;
}

.alert p {
    margin: 0.5rem 0;
}

/* ========================================
   AUTH PAGES (LOGIN, REGISTER)
======================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-card {
    background: #2d2d2d;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 450px;
    width: 100%;
    border: 2px solid #444;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.auth-subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.9rem;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: border 0.3s;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    color: #00ff88;
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #cccccc;
}

.auth-footer a {
    color: #ffd700;
    font-weight: bold;
}

.form-footer {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #ffd700;
    font-size: 0.9rem;
}

.security-question-box {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #ffd700;
}

.question-text {
    color: #00ff88;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION (HOMEPAGE)
======================================== */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 500;
}

.user-welcome {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    border: 3px solid #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.user-welcome h2 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: bold;
}

.user-welcome p {
    color: #ffffff;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   FEATURES & INFO SECTIONS
======================================== */
.features-section,
.info-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.features-section h2,
.info-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #ffd700;
    font-weight: bold;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #2d2d2d;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #444;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.game-card p {
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #444;
}

.step-number {
    width: 70px;
    height: 70px;
    background: #ffd700;
    color: #000000;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.step-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: bold;
}

.step-card p {
    color: #ffffff;
    line-height: 1.8;
}

/* ========================================
   COMMUNITY SECTION
======================================== */
.community-section {
    background: #2d2d2d;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-top: 3px solid #ffd700;
    border-bottom: 3px solid #ffd700;
}

.community-section h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 2rem;
    font-weight: bold;
}

.community-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-telegram {
    background: #0088cc;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-telegram:hover {
    background: #0077bb;
    transform: scale(1.05);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #22c55e;
    transform: scale(1.05);
}

/* ========================================
   DASHBOARD
======================================== */
.dashboard-container,
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header,
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1,
.page-header h1 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.welcome-text {
    color: #ffffff;
    font-size: 1.2rem;
}

.balance-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000000;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.balance-amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.balance-label {
    font-size: 1.2rem;
    font-weight: bold;
}

.balance-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #444;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
}

.stat-success {
    border-color: #00ff88;
}

.stat-success .stat-value {
    color: #00ff88;
}

.stat-danger {
    border-color: #ff4444;
}

.stat-danger .stat-value {
    color: #ff4444;
}

.stat-info {
    border-color: #2196F3;
}

.stat-info .stat-value {
    color: #2196F3;
}

/* ========================================
   TABS
======================================== */
.tabs-container {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #444;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #444;
    padding-bottom: 1rem;
}

.tab-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #444;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #444;
}

.tab-btn.active {
    background: #ffd700;
    color: #000000;
    border-color: #ffd700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========================================
   TABLES
======================================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    background: #1a1a1a;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: #ffd700;
    color: #000000;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #444;
    color: #ffffff;
    font-weight: 500;
}

.data-table tbody tr:hover {
    background: #2d2d2d;
}

/* ========================================
   BADGES
======================================== */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-active {
    background: #2196F3;
    color: #ffffff;
}

.badge-won {
    background: #00ff88;
    color: #000000;
}

.badge-lost {
    background: #ff4444;
    color: #ffffff;
}

.badge-refunded {
    background: #ff9800;
    color: #000000;
}

.badge-pending {
    background: #ffeb3b;
    color: #000000;
}

.badge-approved {
    background: #00ff88;
    color: #000000;
}

.badge-rejected {
    background: #ff4444;
    color: #ffffff;
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   DEPOSIT & WITHDRAW PAGES
======================================== */
.wallet-card,
.form-card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #444;
}

.wallet-card h2,
.form-card h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.wallet-address-box {
    margin-bottom: 2rem;
}

.wallet-address-box label {
    display: block;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.wallet-display {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.wallet-display input {
    flex: 1;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #ffd700;
    border-radius: 6px;
    color: #ffd700;
    font-weight: bold;
    font-size: 1rem;
}

.instructions {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.instructions h3 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-weight: bold;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    color: #ffffff;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.instructions li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #ffd700;
}

.balance-info-box {
    background: linear-gradient(135deg, #00ff88 0%, #00dd77 100%);
    color: #000000;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.balance-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.warning-box {
    background: #ff9800;
    color: #000000;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box h4 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.warning-box ul {
    list-style: none;
    padding-left: 0;
}

.warning-box li {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.deposit-form .form-group,
.withdrawal-form .form-group {
    margin-bottom: 1.5rem;
}

.deposit-form label,
.withdrawal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
}

.deposit-form input,
.withdrawal-form input {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.deposit-form input:focus,
.withdrawal-form input:focus {
    outline: none;
    border-color: #ffd700;
}

/* ========================================
   NOTIFICATIONS PAGE
======================================== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #444;
    transition: all 0.3s;
}

.notification-item:hover {
    border-color: #ffd700;
}

.notification-item.unread {
    background: #3a3a3a;
    border-color: #ffd700;
}

.notif-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-message {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.notif-time {
    color: #cccccc;
    font-size: 0.85rem;
}

.notif-action {
    flex-shrink: 0;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: #2d2d2d;
    padding: 2rem;
    text-align: center;
    border-top: 3px solid #ffd700;
    margin-top: 4rem;
    color: #cccccc;
}

.site-footer p {
    margin: 0.5rem 0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .user-email {
        display: none;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .wallet-display {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.text-white {
    color: #ffffff;
}

.text-gold {
    color: #ffd700;
}

.text-green {
    color: #00ff88;
}

.tx-link {
    color: #2196F3;
    font-weight: bold;
}

.wallet-addr {
    color: #ffd700;
    font-family: monospace;
}
