@tailwind base;
@tailwind components;
@tailwind utilities;

/* ========================================================
   SOSIS GAME - MINECRAFT GREEN & BLACK (EMERALD VOXEL)
   ======================================================== */

:root {
    --mc-dark-bg: #080c09;
    --mc-card-bg: #0e1610;
    --mc-card-hover: #142217;
    --mc-border: #1a2d1f;
    --mc-border-light: #27442f;
    --mc-green: #22c55e;
    --mc-green-glow: #4ade80;
    --mc-green-dark: #15803d;
    --mc-emerald: #10b981;
    --mc-gold: #eab308;
    --mc-diamond: #06b6d4;
    --mc-purple: #a855f7;
    --mc-red: #ef4444;
}

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

body {
    background-color: var(--mc-dark-bg);
    color: #e2e8f0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(5, 46, 22, 0.4) 0%, transparent 70%);
    background-attachment: fixed;
}

/* Custom Minecraft Typography */
.mc-font {
    font-family: 'Press Start 2P', 'Chakra Petch', 'Vazirmatn', monospace;
    letter-spacing: -0.5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080c09;
}
::-webkit-scrollbar-thumb {
    background: #1a2d1f;
    border-radius: 4px;
    border: 1px solid #22c55e44;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Colors & Backgrounds */
.bg-mc-dark { background-color: var(--mc-dark-bg); }
.bg-mc-card { background-color: var(--mc-card-bg); }
.border-mc-border { border-color: var(--mc-border); }
.border-mc-light { border-color: var(--mc-border-light); }

/* Navigation links */
.nav-link {
    color: #a7f3d0;
    position: relative;
    transition: all 0.25s ease;
}
.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background-color: rgba(34, 197, 94, 0.15);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #10b981);
    border-radius: 2px;
    box-shadow: 0 0 10px #22c55e;
}

/* Minecraft Pixel Green Buttons */
.btn-mc-green, .btn-mc-amber {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #041407;
    border: 2px solid #86efac;
    border-bottom: 4px solid #14532d;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
    transition: all 0.15s ease;
    cursor: pointer;
    font-weight: 900;
}
.btn-mc-green:hover, .btn-mc-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.55);
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
}
.btn-mc-green:active, .btn-mc-amber:active {
    transform: translateY(2px);
    border-bottom: 2px solid #14532d;
}

.btn-mc-emerald {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 2px solid #34d399;
    border-bottom: 4px solid #047857;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.15s ease;
    cursor: pointer;
    font-weight: 800;
}
.btn-mc-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.btn-mc-dark {
    background: #0e1610;
    border: 1px solid var(--mc-border);
    border-bottom: 3px solid #050a06;
    color: #86efac;
    transition: all 0.15s ease;
    cursor: pointer;
}
.btn-mc-dark:hover {
    background: #162419;
    border-color: #22c55e;
    color: #fff;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

/* Rank & Product Cards */
.rank-card {
    position: relative;
    background: #0e1610;
    border: 1px solid #1a2d1f;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.rank-card:hover {
    transform: translateY(-6px);
    border-color: var(--rank-color, #22c55e);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.15);
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rank-color, #22c55e);
    box-shadow: 0 0 15px var(--rank-color, #22c55e);
}

.rank-glow-overlay {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse at center, var(--rank-color, #22c55e) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.rank-card:hover .rank-glow-overlay {
    opacity: 0.4;
}

/* Badge Tag */
.rank-badge-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #86efac;
}

/* Bank Card Visualization */
.iran-bank-card {
    background: linear-gradient(135deg, #09130b 0%, #0d1a0f 50%, #122817 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(74, 222, 128, 0.2), 0 0 20px rgba(34, 197, 94, 0.15);
    position: relative;
    overflow: hidden;
}
.iran-bank-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    border-radius: 6px;
    border: 1px solid #b8860b;
    position: relative;
}
.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #8b6508;
}
.card-chip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #8b6508;
}

/* Keyframe animations */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.marquee-wrapper:hover .animate-marquee {
    animation-play-state: paused;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-slide-up {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Modal styles */
.modal-backdrop {
    background-color: rgba(4, 7, 5, 0.88);
    backdrop-filter: blur(8px);
}

/* Drag & Drop Upload Zone */
.dropzone-box {
    border: 2px dashed #27442f;
    border-radius: 16px;
    background: #09100a;
    transition: all 0.25s ease;
}
.dropzone-box.dragover, .dropzone-box:hover {
    border-color: #22c55e;
    background: #101c12;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.container {
    max-width: 1280px;
}
