/**
 * SEO Network Multi-Domain Styles
 * Google-compliant natural link design
 */

/* ========================================
   1. Service Areas Widget (Footer)
   ======================================== */
.service-areas-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-areas-widget .widget-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
}

.service-areas-widget .widget-description {
    color: #6c757d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 15px;
}

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

.area-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
    transition: all 0.3s ease;
    text-align: center;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.area-card a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.area-card a:hover {
    color: #007bff;
}

.area-card i.fa-map-marker {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 5px;
}

.area-card small {
    display: block;
    color: #6c757d;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ========================================
   2. Service Areas Map (Homepage Section)
   ======================================== */
.service-areas-map {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.service-areas-map .section-header {
    margin-bottom: 50px;
}

.service-areas-map .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-areas-map .section-header p {
    font-size: 18px;
    color: #6c757d;
}

.areas-map-grid {
    margin-top: 40px;
}

.area-map-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 30px;
}

.area-map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,123,255,0.15);
    border-color: #007bff;
}

.area-map-card .area-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.area-map-card:hover .area-icon {
    transform: scale(1.1) rotate(5deg);
}

.area-map-card .area-icon i {
    font-size: 32px;
    color: white;
}

.area-map-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.area-map-card p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.area-map-card .btn {
    margin-top: auto;
    transition: all 0.3s ease;
}

.area-map-card .btn:hover {
    transform: translateX(5px);
}

/* External links - no ripple effect, direct navigation */
.area-map-card .external-link,
.footer-network-link.external-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    overflow: visible !important;
}

/* Disable ripple effect for external links */
.area-map-card .external-link::before,
.area-map-card .external-link::after,
.footer-network-link.external-link::before,
.footer-network-link.external-link::after {
    display: none !important;
}

/* Smooth hover effect instead of ripple */
.area-map-card .external-link:hover {
    background-color: #007bff !important;
    color: white !important;
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ========================================
   3. Nearby Areas Sidebar Widget
   ======================================== */
.nearby-areas-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.nearby-areas-sidebar h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
}

.nearby-areas-sidebar .areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-areas-sidebar .areas-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.nearby-areas-sidebar .areas-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nearby-areas-sidebar .areas-list li a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.nearby-areas-sidebar .areas-list li a:hover {
    color: #007bff;
    padding-left: 5px;
}

.nearby-areas-sidebar .areas-list li a i {
    color: #007bff;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nearby-areas-sidebar .areas-list li a:hover i {
    transform: translateX(3px);
}

/* ========================================
   4. In-Content Contextual Links
   ======================================== */
.content-area a[rel="nofollow"] {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.content-area a[rel="nofollow"]:hover {
    color: #0056b3;
    border-bottom-style: solid;
}

/* ========================================
   5. Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .service-areas-map {
        padding: 50px 0;
    }
    
    .service-areas-map .section-header h2 {
        font-size: 28px;
    }
    
    .area-map-card {
        margin-bottom: 20px;
    }
    
    .service-areas-widget {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .service-areas-map .section-header h2 {
        font-size: 24px;
    }
    
    .area-map-card {
        padding: 20px 15px;
    }
    
    .area-map-card .area-icon {
        width: 60px;
        height: 60px;
    }
    
    .area-map-card .area-icon i {
        font-size: 28px;
    }
}

/* ========================================
   6. Print Styles (Hide SEO links in print)
   ======================================== */
@media print {
    .service-areas-widget,
    .service-areas-map,
    .nearby-areas-sidebar {
        display: none !important;
    }
}

/* ========================================
   7. Accessibility
   ======================================== */
.area-card a:focus,
.area-map-card .btn:focus,
.nearby-areas-sidebar .areas-list li a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ========================================
   7. SEO Network Footer
   ======================================== */
.seo-network-footer {
    background: #f8f9fa;
    padding: 40px 0 30px;
    border-top: 1px solid #e9ecef;
}

.footer-network-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.footer-network-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.footer-network-link {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.footer-network-link:hover {
    color: #007bff;
    background-color: rgba(0,123,255,0.08);
    transform: translateY(-2px);
}

/* Responsive footer links */
@media (max-width: 768px) {
    .footer-network-links {
        gap: 10px 15px;
    }

    .footer-network-link {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* ========================================
   8. Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .service-areas-widget {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .service-areas-widget .widget-title {
        color: #ecf0f1;
    }
    
    .area-card {
        background: #34495e;
        border-color: #4a5f7f;
    }
    
    .area-card a {
        color: #ecf0f1;
    }

    .seo-network-footer {
        background: #2c3e50;
        border-top-color: #34495e;
    }

    .footer-network-title {
        color: #ecf0f1;
    }

    .footer-network-link {
        color: #bdc3c7;
    }

    .footer-network-link:hover {
        color: #3498db;
        background-color: rgba(52,152,219,0.15);
    }
}
