/* style.css - High-Contrast Modern Theme for Search Your Cloud */
:root {
    /* Core Colors - WCAG AAA Compliant */
    --bg-dark: #0B0F19;
    --bg-card: #151B2B;
    --bg-hover: #1E293B;
    --primary: #38BDF8;
    --primary-hover: #0EA5E9;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #2D3748;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Typography */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing & Effects */
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease-in-out;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Container & Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary); color: var(--bg-dark);
    padding: 0.75rem 1.5rem; border-radius: var(--radius);
    font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-search {
    background: var(--primary); color: var(--bg-dark);
    border: none; padding: 0 1.5rem; border-radius: var(--radius);
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-search:hover { background: var(--primary-hover); }

/* Navbar */
.navbar {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 1.5rem; font-weight: 700; color: var(--primary);
    display: flex; align-items: center; gap: 0.75rem;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-weight: 500; color: var(--text-muted);
    padding: 0.5rem 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px; background: var(--primary);
}
.mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text-main); font-size: 1.5rem; cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: radial-gradient(circle at top, #151B2B 0%, var(--bg-dark) 70%);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700; margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem; color: var(--text-muted);
    max-width: 650px; margin: 0 auto 2.5rem;
}

/* Search Box */
.search-box {
    max-width: 800px; margin: 0 auto 2rem;
    display: flex; align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px; padding: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.search-icon {
    padding-left: 1.5rem; color: var(--text-muted);
    font-size: 1.1rem;
}
.search-box input, .search-box select {
    background: transparent; border: none;
    color: var(--text-main); padding: 0.75rem 1rem;
    font-size: 1rem; outline: none; font-family: var(--font-main);
}
.search-box input { flex: 1; min-width: 0; }
.search-box select {
    border-left: 1px solid var(--border);
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.search-box option { background: var(--bg-card); color: var(--text-main); }

.trust-badges {
    display: flex; justify-content: center; gap: 2rem;
    color: var(--text-muted); font-size: 0.9rem; flex-wrap: wrap;
}
.trust-badges i { color: var(--success); margin-right: 0.5rem; }

/* Comparison Section */
.comparison-section { padding: 3rem 0; flex: 1; }
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Server Cards */
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.card-badge {
    position: absolute; top: -12px; left: 1.75rem;
    padding: 0.35rem 0.85rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.4rem;
}
.prism-warning {
    position: absolute; top: -12px; right: 1.75rem;
    background: var(--danger); color: white;
    padding: 0.35rem 0.85rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.4rem;
}

.card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.25rem; padding-top: 0.5rem;
}
.card-header h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.privacy-badge {
    padding: 0.35rem 0.75rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
    display: flex; align-items: center; gap: 0.4rem;
}

.specs { margin-bottom: 1.25rem; }
.spec-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem; color: var(--text-muted);
}
.spec-row:last-child { border-bottom: none; }
.spec-row i { width: 1.25rem; color: var(--primary); text-align: center; font-size: 0.9rem; }

.description {
    font-size: 0.95rem; color: var(--text-muted);
    margin-bottom: 1.25rem; flex: 1;
}

.editorial-comment {
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--primary);
    padding: 1rem; border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-muted);
}
.editorial-comment strong { color: var(--text-main); }

.card-actions { margin-top: auto; }
.card-actions .btn-primary { width: 100%; justify-content: center; }

/* Empty State */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted); grid-column: 1 / -1;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem; margin-top: auto;
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 2rem;
}
.footer-col h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.25rem; }
.footer-col h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--text-main); }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center; color: var(--text-muted);
    font-size: 0.85rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 2rem; }
    .search-box { flex-direction: column; border-radius: var(--radius); padding: 1rem; }
    .search-box input, .search-box select, .btn-search { width: 100%; border-radius: var(--radius); }
    .search-box select { border-left: none; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; }
    .btn-search { margin-top: 0.5rem; padding: 0.75rem; }
    .trust-badges { gap: 1rem; font-size: 0.8rem; }
    .results-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Mobile Menu Open State (toggled via JS) */
.nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--bg-card); padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
