/* GrimBox - Main Styles */

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

:root {
    --bg-dark: #080a08;
    --bg-card: rgba(14, 20, 14, 0.7);
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Snow Effect */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Weather Toggle */
.weather-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10000;
    transition: all 0.3s;
}

.weather-toggle:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo span {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-link svg {
    width: 22px;
    height: 22px;
}

/* Hero Section */
.hero {
    padding: 160px 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-banner {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    padding: 80px 60px;
    min-height: 450px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 60%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    animation: breathe 6s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite reverse;
}

@keyframes breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 20px;
    animation: fadeIn 1s ease 0.2s both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text);
    animation: fadeIn 1s ease 0.3s both;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 36px;
    animation: fadeIn 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.5s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

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

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Stats */
.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    animation: fadeIn 1s ease 0.6s both;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
}

/* Shop Section */
.shop {
    padding: 40px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header {
    margin-bottom: 32px;
    animation: fadeIn 0.8s ease;
}

.shop-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Categories */
.categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.category-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

.category-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.category-info {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    font-size: 15px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

.category-btn.active .category-count {
    color: rgba(255,255,255,0.7);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: cardAppear 0.5s ease both;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
    padding: 24px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.product-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-old-price .discount {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

.btn-buy {
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 12px;
}

/* Footer */
footer {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 30px 24px;
    margin-top: 30px;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .categories { 
        flex-direction: row; 
        overflow-x: auto; 
        position: static;
        padding-bottom: 8px;
    }
    .category-btn { flex-shrink: 0; }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 16px; border-radius: 16px; }
    .nav-menu { display: none; }
    .hero-banner { padding: 40px 24px; }
    .stats { flex-wrap: wrap; gap: 20px; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
}
