/* --- YAARWIN VIBRANT GAMING DESIGN SYSTEM --- */
/* Theme: Mint Green, Sky Blue, and Soft White Gradients */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f5f7fa;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(180deg, #e0f7fa 0%, #f5f7fa 100%);
    
    --primary-mint: #00d1b2; /* Main Mint Green */
    --primary-mint-hover: #00b894;
    
    --primary-blue: #74b9ff; /* Main Sky Blue */
    --primary-blue-hover: #0984e3;
    
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --text-white: #ffffff;
    
    --border: #dfe6e9;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    
    --max-w: 1200px;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile nav */
}

/* --- Navigation --- */
.nav {
    background: var(--bg-white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: none; /* Mobile first */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
    .logo img { height: 40px; }
    .nav-links {
        display: flex;
        gap: 25px;
    }
    .nav-links a {
        text-decoration: none;
        color: var(--text-dark);
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--primary-mint); }
}

/* --- Top Nav Buttons --- */
.top-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: transparent;
}

.btn-nav-main {
    flex: 1;
    max-width: 180px;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-white);
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-nav-login { background: var(--primary-blue); }
.btn-nav-register { background: var(--primary-mint); }

.btn-nav-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* --- Hero Section --- */
.hero {
    padding: 30px 0;
    text-align: center;
}

.circular-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.circular-logo {
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-mint);
    box-shadow: 0 0 20px rgba(0, 209, 178, 0.4);
}

.circular-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
    padding: 0 15px;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .hero { padding: 60px 0; }
    .circular-logo { width: 150px; height: 150px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.btn-premium {
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: var(--text-white);
    transition: all 0.3s;
}

.btn-mint {
    background: var(--primary-mint);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 209, 178, 0.3);
}

.btn-blue {
    background: var(--primary-blue);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.btn-mint:hover {
    background: var(--primary-mint-hover);
    transform: scale(1.02);
}

/* --- Sections & Cards --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 40px 0; }
.section-alt { background: rgba(0, 209, 178, 0.03); }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-title h2 { font-size: 1.3rem; }
.section-title span {
    background: var(--primary-mint);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

@media (min-width: 481px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .section-title h2 { font-size: 1.8rem; }
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* --- Category Tabs --- */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid #eee;
}

.tab.active {
    background: var(--primary-mint);
    color: white;
    border-color: var(--primary-mint);
}

/* --- Tables --- */
.table-container {
    background: #fff;
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

table { width: 100%; min-width: 500px; border-collapse: collapse; }
th { background: #f8f9fa; padding: 12px; text-align: left; font-size: 0.9rem; border-bottom: 2px solid var(--primary-mint); }
td { padding: 12px; border-bottom: 1px solid #eee; font-size: 0.9rem; }

/* --- Footer --- */
.footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer h4, .footer h5 { margin-bottom: 15px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer a:hover { color: var(--primary-mint); }

/* --- Floating Components --- */
@keyframes pop-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.floating-telegram {
    position: fixed;
    bottom: 85px; /* Above mobile nav */
    right: 20px;
    width: 55px;
    height: 55px;
    z-index: 1000;
    animation: pop-bounce 3s infinite ease-in-out;
}

@media (min-width: 769px) {
    .floating-telegram { bottom: 30px; right: 30px; width: 65px; height: 65px; }
}

.floating-telegram img { width: 100%; height: 100%; object-fit: contain; }

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
    z-index: 2000;
    border-top: 1px solid #f1f5f9;
}

@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-item.active {
    color: var(--primary-mint);
}

/* --- Gift Code Card --- */
.gift-card-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.4s ease-out;
    width: 100%;
    max-width: 400px;
    opacity: 0;
}

.gift-card-container.active {
    grid-template-rows: 1fr;
    margin-top: 15px;
    opacity: 1;
}

.gift-card-content {
    overflow: hidden;
}

.gift-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 2px solid var(--primary-mint);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.gift-card h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.gift-code-item {
    background: #f8fafc;
    padding: 12px;
    margin: 8px 0;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-mint-hover);
    word-break: break-all;
    border: 1px dashed var(--primary-mint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.code-text {
    flex: 1;
    text-align: left;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(0, 209, 178, 0.1);
    color: var(--primary-mint);
}

.btn-copy.copied {
    color: var(--primary-mint);
    transform: scale(1.1);
}

/* --- Toast Notification --- */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 769px) {
    .copy-toast { bottom: 40px; }
}

.btn-open-game {
    margin-top: 15px;
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.btn-open-game:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

