/* =========================================
   INDEX CSS - HERO LAYOUT REWORK
   ========================================= */
@import url('base.css');

/* --- PAGE WRAPPER --- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(153, 27, 27, 0.15) 0%, var(--bg-primary) 70%);
    padding: 100px 20px 60px 20px;
    overflow: hidden;
}

/* Smooth Fade to Bottom */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 1;
}

/* Background Pattern (Optional) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ef4444' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Logo Animation */
.hero-logo-wrapper {
    margin-bottom: 10px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Title & Subtitle */
.hero-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--c-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* HERO STATUS GROUP */
.hero-status-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* MODERN IP PILL (Minimalist) */
.modern-ip-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-ip-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.ip-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ip-icon {
    font-size: 18px;
    color: var(--text-secondary);
}

.ip-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.ip-action-btn {
    background: rgba(239, 68, 68, 0.1);
    /* Transparent Red */
    color: var(--c-bright);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.modern-ip-wrapper:hover .ip-action-btn {
    background: rgba(239, 68, 68, 0.25);
    /* Subtle Tint instead of solid */
    color: white;
    border-color: var(--c-bright);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* STATUS PILL (SIMPLE) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.online-indicator {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

/* CARD AS LINK FIX */
a.feature-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Restore flex for layout */
}

/* =========================================
   2. FEATURES GRID
   ========================================= */
.features-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 80px auto;
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Generic Feature Card */
.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 30px 25px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--c-medium);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Background Icon Faded */
.card-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    color: var(--text-primary);
    opacity: 0.03;
    pointer-events: none;
    transition: all 0.5s ease;
}

.feature-card:hover .card-bg-icon {
    transform: scale(1.1) rotate(-10deg);
    opacity: 0.06;
}

/* Card Content */
.card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon-box {
    background: var(--c-bright);
    border-color: var(--c-bright);
    color: white;
}

/* Specific Card Colors */
/* SHOP */
.card-shop .card-icon-box {
    color: #22c55e;
}

.card-shop:hover {
    border-color: #22c55e;
}

.card-shop:hover .card-icon-box {
    background: #22c55e;
    border-color: #22c55e;
}

/* DISCORD WIDGET (FOLLOW SCROLL) */
.discord-widget {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(88, 101, 242, 0.15);
    /* Transparent Discord Blurple */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(88, 101, 242, 0.4);
    /* Discord Blurple Border */
    padding: 10px 18px;
    border-radius: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.1);
}

.discord-widget:hover {
    transform: translateY(-2px);
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.25);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.2);
}

.discord-logo-box {
    width: 38px;
    height: 38px;
    background: #5865F2;
    /* Keep original discord brand color for identify */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-stats-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-item {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.discord-separator {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    font-size: 14px;
}

.discord-count {
    display: none;
    /* Old class cleanup if any */
}

/* UPDATES */
.card-updates .card-icon-box {
    color: #3b82f6;
}

.card-updates:hover {
    border-color: #3b82f6;
}

.card-updates:hover .card-icon-box {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* BANS */
.card-bans .card-icon-box {
    color: var(--accent-red);
}

.card-bans:hover {
    border-color: var(--accent-red);
}

.card-bans:hover .card-icon-box {
    background: var(--accent-red);
    border-color: var(--accent-red);
}


.feature-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Feature Button */
.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}

.feature-btn i {
    font-size: 12px;
    color: var(--c-bright);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-btn {
    gap: 15px;
}

.discord-mini-stats {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.discord-mini-stats span {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discord-widget {
        top: 20px;
        right: 20px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 15px 40px 15px;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 10px;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .discord-widget {
        top: auto !important;
        bottom: 25px !important;
        right: 25px !important;
        left: auto !important;
        z-index: 2000;
        padding: 8px 12px;
        background: rgba(88, 101, 242, 0.9);
        backdrop-filter: blur(10px);
        transform: scale(0.9);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .hero-status-group {
        width: 100%;
        max-width: 320px;
    }

    .modern-ip-wrapper {
        padding: 10px 15px;
    }

    .ip-address {
        font-size: 15px;
    }

    .ip-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .ip-address {
        font-size: 13px;
    }

    .discord-stats-box {
        display: none;
    }

    .discord-widget {
        padding: 8px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
        bottom: 20px;
        right: 20px;
    }

    .discord-logo-box {
        width: 100%;
        height: 100%;
        background: transparent;
        box-shadow: none;
    }

    .feature-card {
        padding: 25px 20px;
    }
}