/* ===================================
   THE WALKING PAW - COMPLETE CSS
   Dark zombie theme with green accents
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7bed9f;
    --primary-dark: #2ed573;
    --bg-dark: #0a0c0e;
    --bg-card: #141618;
    --bg-card-hover: #1a1d1f;
    --text: #e8e6e3;
    --text-muted: #a8a6a3;
    --border: #2a2d2f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === FOG EFFECT === */
.fog-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    filter: contrast(115%) brightness(110%) blur(1px);
}

.fog-layer::before,
.fog-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(200,200,220,0.45) 0%, transparent 70%);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.fog-layer::before {
    animation: fogDriftMain 60s linear infinite;
    transform: translateX(-50%) scale(1.2);
    opacity: 0.22;
}

.fog-layer::after {
    animation: fogDriftSecondary 35s ease-in-out infinite alternate;
    transform: translateX(20%) scale(1.1);
    opacity: 0.12;
}

@keyframes fogDriftMain {
    0% { transform: translateX(0) scale(1.2); opacity: 0.25; }
    50% { transform: translateX(-25%) scale(1.3); opacity: 0.18; }
    100% { transform: translateX(-60%) scale(1.25); opacity: 0.25; }
}

@keyframes fogDriftSecondary {
    0% { transform: translateX(20%) translateY(-5%) scale(1.05); opacity: 0.15; }
    50% { transform: translateX(-20%) translateY(5%) scale(1.15); opacity: 0.10; }
    100% { transform: translateX(10%) translateY(-10%) scale(1.1); opacity: 0.15; }
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.center {
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0f11 100%);
    position: relative;
}

.hero-inner {
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
    border-radius: 0;
    filter: drop-shadow(0 0 40px rgba(123, 237, 159, 0.6)) drop-shadow(0 0 80px rgba(123, 237, 159, 0.4));
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 40px rgba(123, 237, 159, 0.6)) drop-shadow(0 0 80px rgba(123, 237, 159, 0.4)); }
    100% { filter: drop-shadow(0 0 60px rgba(123, 237, 159, 0.8)) drop-shadow(0 0 120px rgba(123, 237, 159, 0.5)); }
}

.pill {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(123, 237, 159, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 12px auto 24px;
    max-width: 600px;
    line-height: 1.5;
}

/* === BUTTONS === */
.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 237, 159, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    flex-wrap: wrap;
}

.social-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 29, 31, 0.8);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(123, 237, 159, 0.4);
}

/* === STATS BAR === */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SECTIONS === */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--bg-card);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === CARDS === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Tokenomics section - force 4 columns */
#tokenomics .cards {
    grid-template-columns: repeat(4, 1fr);
}

/* Pack Builder tiers - force 4 columns HORIZONTAL */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.tier-cards .card {
    min-width: 0;
    font-size: 14px;
}

.tier-cards h3 {
    font-size: 1.25rem;
}

.tier-cards p {
    font-size: 13px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(123, 237, 159, 0.15);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.card p {
    margin: 8px 0;
    line-height: 1.5;
}

/* === CONTRACT SECTION === */
.contract-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 24px auto;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.contract {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #2ed573;
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(123, 237, 159, 0.3);
}

/* === FOOTER === */
footer {
    background: var(--bg-card);
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer small {
    color: var(--text-muted);
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .tier-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .tier-cards .card {
        padding: 20px 12px;
        font-size: 13px;
    }
    
    .tier-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .logo {
        max-width: 500px;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cards,
    #tokenomics .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .tier-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery img {
        height: 300px;
    }
    
    .contract-wrapper {
        flex-direction: column;
    }
    
    .contract {
        font-size: 12px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }

    .tier-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .logo {
        max-width: 100%;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .cards,
    #tokenomics .cards,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-cards {
        grid-template-columns: 1fr;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

    .tier-image {
        width: 120px;
        height: 120px;
    }
}

/* === PACK BUILDER SPECIFIC STYLES === */
.tier-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    display: block;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(123, 237, 159, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 32px rgba(123, 237, 159, 0.5);
}

.tier-card-bronze {
    border: 2px solid #cd7f32;
}

.tier-card-silver {
    border: 2px solid #c0c0c0;
}

.tier-card-gold {
    border: 2px solid #ffd93d;
}

.tier-card-diamond {
    border: 2px solid #7bed9f;
    box-shadow: 0 0 20px rgba(123, 237, 159, 0.3);
}

.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 6px;
}

.badge-bronze { background: #cd7f32; color: #000; }
.badge-silver { background: #c0c0c0; color: #000; }
.badge-gold { background: #ffd93d; color: #000; }
.badge-diamond { background: #7bed9f; color: #000; }

/* === UTILITIES === */
.text-primary { color: var(--primary); }
.bg-dark { background: var(--bg-dark); }
.bg-card { background: var(--bg-card); }
.border-primary { border-color: var(--primary); }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* === LINK TO PACK BUILDER === */
.pack-link {
    display: inline-block;
    margin: 32px auto;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-weight: 700;
    font-size: 18px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(123, 237, 159, 0.3);
}

.pack-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(123, 237, 159, 0.5);
}
/* === PACK BUILDER TIER LAYOUT FIX === */
.tier-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 24px;
}

.tier-cards .card {
  flex: 1 1 240px;
  max-width: 260px;
  margin: 0 auto;
  text-align: center;
}

.tier-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(123, 237, 159, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tier-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 32px rgba(123, 237, 159, 0.5);
}

@media (max-width: 900px) {
  .tier-cards { gap: 18px; }
  .tier-cards .card { flex: 1 1 45%; }
  .tier-image { width: 120px; height: 120px; }
}
@media (max-width: 600px) {
  .tier-cards { flex-direction: column; align-items: center; }
  .tier-cards .card { max-width: 300px; }
  .tier-image { width: 100px; height: 100px; }
}
