/* Insights Pages Styling */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white !important;
}

.hero-section h2 {
    color: white !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumbs {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    color: white;
    font-weight: 500;
}

/* Market Health Widget */
.market-health-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.market-health-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.market-health-widget h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.market-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.metric-value.demand-high {
    color: #28a745;
}

.metric-value.demand-medium {
    color: #ffc107;
}

.metric-value.demand-low {
    color: #dc3545;
}

.metric-value.trend-rising {
    color: #28a745;
}

.metric-value.trend-stable {
    color: #17a2b8;
}

.metric-value.trend-seasonal {
    color: #fd7e14;
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content Layout */
.main-content {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Popular Cars Section */
.popular-cars-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-cars-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.car-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.car-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rank {
    background: #007bff;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.car-item h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.car-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Market Analysis Section */
.market-analysis-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analysis-content p {
    margin-bottom: 1rem;
}

.market-insights {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.market-insights h3 {
    margin-bottom: 1rem;
    color: #333;
}

.market-insights ul {
    margin: 0;
    padding-left: 1.5rem;
}

.market-insights li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-right: 2rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-answer {
    display: none;
    color: #555;
    line-height: 1.6;
}

/* Selling Tips Section */
.selling-tips-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.tip-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.tip-card p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-stats-widget,
.related-counties-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-stats-widget h3,
.related-counties-widget h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-links a {
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.related-links a:hover {
    background-color: #f8f9fa;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.sticky-cta.visible {
    bottom: 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.cta-button {
    background: white;
    color: #007bff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Insights Home Page */
.counties-section {
    padding: 3rem 0;
}

.counties-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

.counties-section p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.county-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.county-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.county-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.county-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.popular-car {
    font-size: 0.85rem;
    color: #007bff;
    background: #f0f7ff;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

/* Market Overview Section */
.market-overview-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.market-overview-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.overview-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.overview-card .metric {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
}

.overview-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .market-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .counties-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .market-health-widget,
    .popular-cars-section,
    .market-analysis-section,
    .faq-section,
    .selling-tips-section,
    .quick-stats-widget,
    .related-counties-widget {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* NCT Guide Section */
.nct-guide-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.nct-guide-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.nct-guide-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nct-guide-content h3 {
    font-size: 1.8rem;
    color: #22223b;
    margin-bottom: 1rem;
}

.nct-guide-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.nct-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.nct-highlights li {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.nct-guide-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nct-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: rotate(-5deg);
}

.nct-text {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.nct-valid {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .nct-guide-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .nct-guide-section {
        padding: 3rem 0;
    }
}