/* =========================================
   DEDICATED SERVER VARIABLES (TITAN THEME)
   ========================================= */
:root {
    --bg-body: #f8fafc;
    /* Elektrik Mavisi ve Karbon */
    --primary: #2563eb; 
    --secondary: #1e293b; /* Dark Slate */
    --rack-bg: #0f172a; /* Sunucu Kasası Rengi (Koyu) */
    --metal-gradient: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    --led-green: #22c55e; /* Status Light */
    --hero-bg: radial-gradient(circle at 20% 50%, #0f172a 0%, #020617 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-rack: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* =========================================
   1. HERO SECTION (STANDART)
   ========================================= */
.server-hero {
    position: relative;
    padding: 160px 0 200px;
    background: var(--hero-bg);
    color: white;
    overflow: hidden;
}
.server-hero::before {
    content: ''; position: absolute; inset: 0;
    /* Metalik Izgara Deseni */
    background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.05) 20px),
                      repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.05) 20px);
    background-size: 20px 20px; opacity: 0.3; z-index: 0;
}

.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; 
    align-items: center; gap: 50px; position: relative; z-index: 2;
}

.hero-text { text-align: left; }

.hero-badge {
    background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 16px; border-radius: 50px; font-weight: 700; font-size: 0.85rem;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.15rem; color: #cbd5e1; max-width: 600px; line-height: 1.6; margin-bottom: 40px; }

/* Feature Grid */
.hero-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 600px; }
.hf-box {
    padding: 15px 20px; border-radius: 4px; /* Köşeli (Hardware Hissi) */
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; gap: 15px; transition: 0.3s;
}
.hf-icon { font-size: 1.5rem; color: #94a3b8; }
.hf-text h5 { font-size: 1rem; font-weight: 700; margin: 0; color: #fff; }
.hf-text span { font-size: 0.8rem; color: #94a3b8; }

.hf-box.glow {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}
.hf-box.glow .hf-icon { color: #60a5fa; }

.hero-visual { position: relative; text-align: center; }
.hero-img-anim {
    width: 100%; max-width: 500px; 
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: floatImg 8s ease-in-out infinite;
}
@keyframes floatImg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }


/* =========================================
   2. PACKAGES SECTION (RACK ARCHITECTURE)
   ========================================= */
.packages-section { margin-top: -80px; padding-bottom: 100px; position: relative; z-index: 10; }

.rack-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 20px;
}

/* RACK UNIT ITEM */
.rack-item {
    background: var(--rack-bg); /* Koyu Zemin */
    color: white;
    border-radius: 6px; /* Hafif yumuşak köşe */
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1fr 1fr 1.5fr; /* Status, Name, CPU, RAM, Disk, Price/Action */
    align-items: center;
    padding: 20px;
    border-left: 5px solid var(--primary); /* Sol vurgu çizgisi */
    box-shadow: var(--shadow-rack);
    transition: 0.3s;
    position: relative;
    border: 1px solid #334155;
    border-left-width: 5px;
}
.rack-item:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    z-index: 2;
}

/* 1. Status Lights (Server Lights) */
.rack-status {
    display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1); height: 100%; padding-right: 15px;
}
.led { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.led.on { background: var(--led-green); box-shadow: 0 0 10px var(--led-green); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 2. Server Name & Model */
.rack-name { padding: 0 20px; }
.rack-name h3 { font-size: 1.2rem; font-weight: 800; margin: 0; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.rack-name span { font-size: 0.8rem; color: #94a3b8; font-family: monospace; }

/* 3. Hardware Specs (CPU, RAM, Disk) */
.rack-spec { display: flex; flex-direction: column; gap: 5px; padding: 0 15px; border-right: 1px solid rgba(255,255,255,0.1); }
.rack-spec:nth-last-child(2) { border-right: none; } /* Disk'ten sonra çizgi yok */

.spec-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; font-weight: 700; }
.spec-val { font-size: 1rem; font-weight: 700; color: #e2e8f0; display: flex; align-items: center; gap: 8px; }
.spec-val i { color: var(--primary); font-size: 0.9rem; }

/* 4. Price & Action */
.rack-action { 
    display: flex; align-items: center; justify-content: space-between; 
    padding-left: 20px; gap: 15px;
}
.rack-price { text-align: right; }
.price-val { font-size: 1.5rem; font-weight: 800; color: #fff; }
.price-val sub { font-size: 0.8rem; color: #94a3b8; font-weight: 400; }

.btn-config {
    background: var(--primary); color: white;
    padding: 10px 20px; border-radius: 4px;
    font-weight: 700; text-decoration: none; font-size: 0.9rem;
    transition: 0.3s; white-space: nowrap;
}
.btn-config:hover { background: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }

/* Detay Butonu (Accordion için) */
.btn-detail-toggle {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff;
    width: 30px; height: 30px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: 0.3s;
}
.btn-detail-toggle:hover { border-color: #fff; }

/* EXPANDABLE DETAILS */
.rack-details {
    display: none; /* JS ile açılacak */
    background: #1e293b; /* Biraz daha açık koyu */
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    grid-column: 1 / -1; /* Tüm satırı kapla */
}
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.det-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.det-item i { color: var(--led-green); }


/* =========================================
   3. SPECS & CONTENT
   ========================================= */
.specs-section { padding: 100px 0; background: #fff; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.spec-box { background: #f8fafc; padding: 30px; border-radius: 16px; transition: 0.3s; border: 1px solid #e2e8f0; text-align: left; }
.spec-box:hover { background: #fff; border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.spec-icon {
    width: 60px; height: 60px; background: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary); margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
}
.spec-box h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; color: var(--text-main); }
.spec-box p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Hardware Bar */
.hardware-bar {
    background: #0f172a; padding: 60px 0; color: white; text-align: center;
}
.hw-logos { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; opacity: 0.7; filter: grayscale(100%); }
.hw-logos img { height: 40px; transition: 0.3s; }
.hw-logos img:hover { filter: grayscale(0%); transform: scale(1.1); opacity: 1; }

.content-area { padding: 100px 0; background: var(--bg-body); }
.row-item { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.row-item.reverse { flex-direction: row-reverse; }
.row-img img { width: 100%; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 5px solid #fff; }
.row-text h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 20px; font-weight: 800; }
.row-text p { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }

/* =========================================
   4. FAQ
   ========================================= */
.faq-sec { padding: 80px 0; max-width: 900px; margin: 0 auto; }
.faq-box { margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.faq-q { padding: 20px; background: #fff; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; color: var(--text-main); }
.faq-q:hover { background: #f8fafc; }
.faq-a { display: none; padding: 20px; border-top: 1px solid #f1f5f9; background: #fff; color: var(--text-muted); line-height: 1.6; }
.faq-box.active .faq-a { display: block; }
.faq-box.active .faq-q { color: var(--primary); }
.rotate-icon { transition: 0.3s; }
.faq-box.active .rotate-icon { transform: rotate(180deg); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .server-hero { padding: 100px 0 100px; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { text-align: center; }
    .hero-badge, .hero-features-grid { margin: 0 auto 20px; }
    .hero-visual { display: none; }
    
    /* Rack Mobile Transformation */
    .rack-item {
        grid-template-columns: 1fr; /* Tek sütun */
        text-align: center; gap: 15px; padding: 25px;
    }
    .rack-status { display: none; }
    .rack-spec { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
    .rack-action { flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; padding-left: 0; }
    .btn-config { width: 100%; }
    
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .row-item, .row-item.reverse { flex-direction: column; text-align: center; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .specs-grid { grid-template-columns: 1fr; } }