/* LinkCentre Critical CSS Bundle - Optimized for Core Web Vitals */
/* Consolidated critical styles for faster LCP */

/* Base styles and layout */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Directory layout - Critical for LCP */
.directory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.directory-header {
    margin-bottom: 30px;
}

.directory-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.results-summary {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Two-column layout - Critical for content display */
.directory-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.listings-container {
    min-height: 400px; /* Prevent layout shift */
}

/* Listing cards - Critical for content visibility */
.result-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.result-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.result-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.result-card h4 a {
    color: #1a73e8;
    text-decoration: none;
}

.result-card h4 a:hover {
    text-decoration: underline;
}

.result-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.result-flag {
    border-radius: 50%;
    border: 0.5px solid white;
    margin-right: 8px;
}

/* Sidebar - Critical for layout */
.directory-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 8px;
}

.sidebar-section a {
    color: #1a73e8;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.sidebar-section a:hover {
    text-decoration: underline;
}

/* Premium listings highlight */
.result-card.premium {
    border-left: 4px solid #fbbc04;
    background: linear-gradient(to right, #fef8e7 0%, #fff 100%);
}

.result-card.premium::before {
    content: "⭐ PREMIUM";
    display: inline-block;
    background: #fbbc04;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Responsive design - Critical for mobile */
@media (max-width: 768px) {
    .directory-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .directory-header h1 {
        font-size: 2rem;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading state - Prevent layout shift */
.loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Flag styles - Optimized */
.circle-flag {
    border-radius: 50%;
    border: 0.5px solid white;
}

/* Breadcrumb navigation */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    margin: 0 5px;
}
