/* 
 * TopHosting.Space - Professional Hosting Review Theme
 * Modern, Clean, High-Conversion Design
 * Optimized for Performance and SEO
 */

:root {
    /* Color Palette */
    --primary: #0F172A;
    /* Slate 900 */
    --primary-light: #1E293B;
    /* Slate 800 */
    --secondary: #3B82F6;
    /* Blue 500 */
    --secondary-hover: #2563EB;
    /* Blue 600 */
    --accent: #10B981;
    /* Emerald 500 */
    --accent-hover: #059669;
    /* Emerald 600 */
    --danger: #EF4444;
    /* Red 500 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748B;
    /* Slate 500 */
    --bg-light: #F8FAFC;
    /* Slate 50 */
    --white: #FFFFFF;
    --border: #E2E8F0;
    /* Slate 200 */

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-gap: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #CBD5E1;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Featured Table */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -3rem;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.comparison-table th {
    background-color: var(--bg-light);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.comparison-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.provider-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.provider-logo {
    width: 100px;
    /* Adjusted for logos */
    height: auto;
    object-fit: contain;
}

.badge-top {
    display: inline-block;
    background-color: #FEF3C7;
    color: #D97706;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
}

.score-badge {
    background-color: var(--bg-light);
    color: var(--primary);
    font-weight: 800;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
}

/* Features List in Table */
.features-list {
    font-size: 0.9rem;
    color: var(--text-light);
}

.features-list li {
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.features-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

/* Trust Signals */
.trust-signals {
    padding: 3rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h4 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 2rem;
}

.article-content h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.featured-snippet-box {
    background-color: #F0F9FF;
    /* Light blue tech look */
    border-left: 5px solid var(--secondary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: #94A3B8;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--primary-light);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Provider Cards (Professional Design) */
.provider-card {
    background-color: var(--white);
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 2rem;
    /* p-8 */
    border: 1px solid #F1F5F9;
    /* border-slate-100 */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.provider-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    /* shadow-2xl */
    transform: translateY(-2px);
}

.card-badge {
    display: inline-block;
    background-color: #FACC15;
    /* yellow-400 */
    color: black;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* rounded-full */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.card-logo {
    width: 64px;
    /* w-16 */
    height: 64px;
    /* h-16 */
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    /* rounded-xl */
    padding: 0.5rem;
    background-color: white;
}

.card-title {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 800;
    color: #1E293B;
    /* slate-800 */
    margin-bottom: 0.25rem;
    line-height: 1;
}

.card-subtitle {
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.rating-text {
    font-size: 0.875rem;
    /* text-sm */
    color: #EAB308;
    /* yellow-500 */
    font-weight: 600;
}

.uptime-text {
    font-size: 0.75rem;
    color: #16A34A;
    /* green-600 */
    font-weight: 600;
}

.card-description {
    font-size: 0.875rem;
    /* text-sm */
    color: #475569;
    /* slate-600 */
    margin-top: 1.25rem;
    line-height: 1.625;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    /* text-xs */
    color: #334155;
    /* slate-700 */
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.pricing-item {
    background-color: #F8FAFC;
    /* slate-50 */
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
}

.pricing-item.highlight {
    background-color: #EFF6FF;
    /* blue-50 */
    border: 2px solid #2563EB;
    /* blue-600 */
}

.price-tag {
    font-weight: 800;
    color: #16A34A;
    /* green-600 */
    margin-top: 0.5rem;
    display: block;
}

.pros-list {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #475569;
}

.pros-list p {
    margin-bottom: 0.25rem;
}

.card-cta {
    display: block;
    margin-top: 2rem;
    background-color: #2563EB;
    /* blue-600 */
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.card-cta:hover {
    background-color: #1D4ED8;
    /* blue-700 */
    color: white;
}

/* Responsive adjustments for cards */
@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}