/* ============================================
   ScrapNode - Serveurs Page Styles (Redesign)
   Matches index.html premium design language
   ============================================ */

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(46, 204, 113, 0.8); }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   Page Header — Hero-like treatment
   -------------------------------------------------------------------------- */

.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: floatOrb 8s ease-in-out infinite;
}

.page-header::before {
    width: 350px;
    height: 350px;
    background: rgba(46, 204, 113, 0.12);
    top: -80px;
    left: -60px;
}

.page-header::after {
    width: 300px;
    height: 300px;
    background: rgba(230, 126, 34, 0.08);
    bottom: -40px;
    right: -60px;
    animation-delay: -4s;
}

.page-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -3px;
    line-height: 1.05;
}

.page-header h1 .gradient-text {
    background: linear-gradient(135deg, #E67E22 0%, #F39C12 50%, #E67E22 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.page-header p {
    font-size: 1.35rem;
    color: #95A5A6;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Servers Section
   -------------------------------------------------------------------------- */

.servers-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #ECF0F1;
    letter-spacing: -2px;
}

/* --------------------------------------------------------------------------
   Category Headers
   -------------------------------------------------------------------------- */

.category-header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5), rgba(52, 73, 94, 0.25));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 40px;
    margin: 60px 0 30px;
    border: 1px solid rgba(52, 73, 94, 0.4);
    border-left: 5px solid;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
}

.category-header:first-of-type {
    margin-top: 20px;
}

.category-header.free {
    border-left-color: #2ECC71;
}

.category-header.premium {
    border-left-color: #E67E22;
}

.category-header:hover {
    border-color: rgba(52, 73, 94, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-info h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ECF0F1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.category-info p {
    color: #BDC3C7;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Server Cards — Premium glassmorphism
   -------------------------------------------------------------------------- */

.server-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.6), rgba(52, 73, 94, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 24px;
    padding: 45px;
    margin-bottom: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar — animated */
.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2ECC71, #27AE60);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.12);
}

/* Coming soon variant */
.server-card.coming-soon {
    border-color: rgba(127, 140, 141, 0.25);
    opacity: 0.85;
}

.server-card.coming-soon::before {
    background: linear-gradient(90deg, #7F8C8D, #95A5A6);
}

.server-card.coming-soon:hover {
    opacity: 0.92;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border-color: rgba(149, 165, 166, 0.4);
}

/* Premium server variant */
.server-card.premium-server {
    border-color: rgba(230, 126, 34, 0.3);
}

.server-card.premium-server::before {
    background: linear-gradient(90deg, #E67E22, #F39C12);
}

.server-card.premium-server:hover {
    border-color: rgba(230, 126, 34, 0.5);
    box-shadow: 0 20px 60px rgba(230, 126, 34, 0.12);
}

/* Scroll reveal */
.server-card.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.server-card.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

.server-card.coming-soon.scroll-hidden.revealed {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Server Header
   -------------------------------------------------------------------------- */

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.server-info {
    flex: 1;
}

.server-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ECC71;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.server-badge.coming-soon-badge {
    background: rgba(127, 140, 141, 0.15);
    color: #95A5A6;
}

.server-badge.premium-badge {
    background: rgba(230, 126, 34, 0.15);
    color: #E67E22;
}

.server-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ECF0F1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.server-type {
    font-size: 1.1rem;
    color: #BDC3C7;
    margin-bottom: 20px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #2ECC71;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: #7F8C8D;
    animation: none;
}

/* --------------------------------------------------------------------------
   Server Price
   -------------------------------------------------------------------------- */

.server-price {
    text-align: right;
}

.price-amount {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #E67E22;
    line-height: 1;
}

.price-period {
    color: #7F8C8D;
    font-size: 1.05rem;
    margin-top: 5px;
}

.price-free .price-amount {
    color: #2ECC71;
    font-size: 2.8rem;
}

.price-sub {
    color: #95A5A6;
    font-size: 0.9rem;
    margin-top: 5px;
}

.price-sub span {
    color: #E67E22;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Price Tiers
   -------------------------------------------------------------------------- */

.server-price-tiers {
    text-align: right;
}

.price-tier {
    margin-bottom: 8px;
}

.price-tier .price-label {
    font-size: 0.8rem;
    color: #7F8C8D;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-tier .price-amount {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    line-height: 1;
}

.price-tier.basic .price-amount {
    font-size: 2.5rem;
    color: #BDC3C7;
}

.price-tier.premium-tier .price-amount {
    font-size: 2.5rem;
    color: #E67E22;
}

.price-tier .price-period {
    font-size: 0.85rem;
    color: #7F8C8D;
}

.price-divider {
    color: #5D6D7E;
    font-size: 1.2rem;
    margin: 0 5px;
}

/* --------------------------------------------------------------------------
   Server Specs
   -------------------------------------------------------------------------- */

.server-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon {
    width: 45px;
    height: 45px;
    background: rgba(230, 126, 34, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.server-card:hover .spec-icon {
    transform: scale(1.05);
}

.spec-info h4 {
    font-size: 0.8rem;
    color: #7F8C8D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.spec-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ECF0F1;
}

.server-description {
    color: #BDC3C7;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Server Features
   -------------------------------------------------------------------------- */

.server-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(52, 73, 94, 0.25);
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #BDC3C7;
}

.feature-item:hover {
    background: rgba(52, 73, 94, 0.4);
}

.feature-item::before {
    content: "\2713";
    color: #2ECC71;
    font-weight: bold;
    font-size: 1rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Server Actions — Buttons
   -------------------------------------------------------------------------- */

.server-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-join {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.35);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.55);
}

.btn-join:disabled,
.btn-join.disabled {
    background: linear-gradient(135deg, #5D6D7E, #7F8C8D);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.btn-join:disabled:hover,
.btn-join.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-info {
    background: transparent;
    color: #ECF0F1;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid #34495E;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-info:hover {
    border-color: #E67E22;
    color: #E67E22;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */

.pricing-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.6), rgba(52, 73, 94, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 126, 34, 0.25);
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #F39C12);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 0 20px 60px rgba(230, 126, 34, 0.15);
}

.pricing-card.featured {
    border-color: rgba(230, 126, 34, 0.4);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, #E67E22, #2ECC71);
    transform: scaleX(1);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-card.unavailable {
    opacity: 0.75;
    border-color: rgba(127, 140, 141, 0.25);
}

.pricing-card.unavailable::before {
    background: linear-gradient(90deg, #7F8C8D, #95A5A6);
    transform: scaleX(1);
    opacity: 0.6;
}

.pricing-card.unavailable:hover {
    opacity: 0.85;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Scroll reveal */
.pricing-card.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.unavailable.scroll-hidden.revealed {
    opacity: 0.75;
}

.pricing-card.featured.unavailable.scroll-hidden.revealed {
    opacity: 0.75;
    transform: scale(1.02);
}

/* Stagger */
.pricing-grid .pricing-card:nth-child(1) { transition-delay: 0s; }
.pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.2s; }

.pricing-badge {
    background: linear-gradient(135deg, #E67E22, #D35400);
    color: white;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.pricing-badge.unavailable-badge {
    background: linear-gradient(135deg, #5D6D7E, #7F8C8D);
}

.pricing-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ECF0F1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.pricing-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #E67E22;
    margin-bottom: 10px;
    line-height: 1;
}

.pricing-period {
    color: #7F8C8D;
    font-size: 1rem;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.25);
    color: #BDC3C7;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.pricing-features li::before {
    content: "\2713";
    color: #2ECC71;
    font-weight: bold;
    font-size: 1.1rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Info Box
   -------------------------------------------------------------------------- */

.info-box {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(211, 84, 0, 0.05));
    border: 1px solid rgba(230, 126, 34, 0.25);
    border-left: 4px solid #E67E22;
    padding: 30px;
    border-radius: 18px;
    margin: 40px auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.info-box:hover {
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.08);
}

.info-box h3 {
    color: #E67E22;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.info-box p {
    color: #BDC3C7;
    line-height: 1.7;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Footer Social
   -------------------------------------------------------------------------- */

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Scroll Reveal — Global classes
   -------------------------------------------------------------------------- */

.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

.category-header.scroll-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.category-header.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

.info-box.scroll-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.info-box.scroll-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive — 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive — 768px
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .page-header {
        padding: 70px 24px 60px;
    }

    .page-header::before,
    .page-header::after {
        display: none;
    }

    .page-header h1 {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .server-header {
        flex-direction: column;
    }

    .server-price {
        text-align: left;
    }

    .server-card {
        padding: 30px 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured.unavailable.scroll-hidden.revealed {
        opacity: 0.75;
        transform: none;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin: 40px 0 20px;
    }

    .category-info h2 {
        font-size: 1.8rem;
    }

    .server-price-tiers {
        text-align: left;
    }

    .price-tier .price-amount {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn-join,
    .btn-info {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive — 480px
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .page-header p {
        font-size: 1rem;
    }

    .server-name {
        font-size: 2rem;
    }

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

    .server-actions {
        flex-direction: column;
    }

    .btn-join,
    .btn-info {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
