/* RANKIN DESIGN SYSTEM - MODERN, FAST, MINIMAL */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --success: #059669;
    --warning: #d97706;
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.main-nav a {
    margin-left: 30px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* SECTIONS */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.category-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.city-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-links li a {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.city-links li a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* TRUST SECTION */
.trust-section {
    background: var(--bg-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.trust-item p {
    color: var(--text-light);
}

.trust-item a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.trust-item a:hover {
    border-bottom-color: var(--primary);
}

/* BREADCRUMB */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* RANKING TABLE */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ranking-table th {
    background: var(--bg-gray);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.ranking-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}

.ranking-table tr:hover {
    background: var(--bg-gray);
}

.rank-badge {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.score {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

/* PROS/CONS */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros,
.cons {
    padding: 24px;
    border-radius: var(--radius);
}

.pros {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}

.cons {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}

.pros h3,
.cons h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.pros ul,
.cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

.cons li::before {
    content: "× ";
    color: #dc2626;
    font-weight: 700;
    margin-right: 8px;
}

/* METHODOLOGY */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.criterion {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.criterion h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.criterion .weight {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* FOOTER */
.site-footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* UTILITY */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.update-date {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .main-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin-left: 20px;
        /* Offset for logo */
    }

    .main-nav a {
        margin-left: 20px;
        font-size: 14px;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }
}