/* 
   Elite Guide Hub v3 - Homepage Consistent Design 
   Colors & Styles matching index.html 
*/

:root {
    --primary-purple: #532EAA;
    --primary-gradient: linear-gradient(135deg, #532EAA 0%, #764ba2 100%);
    --success-green: #10B981;
    --success-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --accent-orange: #F59E0B;
    --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --bg-light: #F7F7F9;
    --bg-purple-light: linear-gradient(135deg, #F8F5FF 0%, #F0EBFF 100%);
    --text-dark: #0E1311;
    --text-muted: #4E4B66;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.06);
    --border-radius: 16px;
}

/* Base Styles */
body {
    background-color: #fff;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Hero Section - Matching Home Hero */
.hub-hero {
    padding: 100px 0 80px;
    text-align: center;
    background: var(--bg-purple-light);
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(83, 46, 170, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.badge-pill {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(83, 46, 170, 0.3);
    position: relative;
    z-index: 1;
}

.hub-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.hub-hero h1 span {
    color: var(--primary-purple);
}

.hub-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

/* Master Search Bar - Sleek & Modern */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 1.2rem;
    z-index: 2;
    pointer-events: none;
}

#masterSearch {
    width: 100%;
    padding: 18px 30px 18px 65px;
    border-radius: 100px;
    border: 2px solid #E2E8F0;
    background: white;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

#masterSearch:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 15px 40px rgba(83, 46, 170, 0.15);
    transform: translateY(-2px);
}

/* Category Grid - Matching Home "Common Issues" */
.category-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    margin-top: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.cat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: white;
}

.cat-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

/* Color Modifiers for Categories */
.cat-mould { border-bottom: 4px solid var(--success-green); }
.cat-mould .cat-icon { background: var(--success-gradient); }

.cat-leaks { border-bottom: 4px solid #3B82F6; }
.cat-leaks .cat-icon { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }

.cat-structure { border-bottom: 4px solid #8B5CF6; }
.cat-structure .cat-icon { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }

.cat-heating { border-bottom: 4px solid #EF4444; }
.cat-heating .cat-icon { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }

.cat-pests { border-bottom: 4px solid var(--accent-orange); }
.cat-pests .cat-icon { background: var(--accent-gradient); }

/* Visual Zones - The Link Grids */
.visual-zone {
    padding: 80px 0;
    border-top: 1px solid #F1F5F9;
}

.visual-zone:nth-child(even) {
    background: #F9FAFB;
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.zone-icon {
    font-size: 2rem;
    color: var(--primary-purple);
}

.zone-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.link-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.dir-item {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dir-item::after {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: var(--primary-purple);
}

.dir-item:hover {
    border-color: var(--primary-purple);
    background: #F8F5FF;
    color: var(--primary-purple);
    padding-right: 40px;
    transform: translateX(5px);
}

.dir-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.dir-item i {
    color: var(--primary-purple);
    font-size: 1rem;
    opacity: 0.7;
}

/* Utilities */
.hidden { display: none !important; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hub-hero h1 {
        font-size: 2.5rem;
    }
    .hub-hero p {
        font-size: 1.1rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .link-explorer {
        grid-template-columns: 1fr;
    }
    #masterSearch {
        padding: 18px 25px 18px 55px;
    }
}

/* Enhanced Content Styling for SEO - Centered & Professional */
.guide-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    margin-top: 50px;
    color: #0E1311;
    text-align: center;
}

.guide-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 35px;
    margin-top: 50px;
    color: #0E1311;
    text-align: center;
}

.guide-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    margin-top: 40px;
    color: #532EAA;
    text-align: center;
}

.guide-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    margin-top: 30px;
    color: #0E1311;
    text-align: center;
}

.guide-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 30px;
    color: #4E4B66;
    text-align: justify;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 35px;
    padding-left: 30px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.guide-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #4E4B66;
}

.guide-content strong {
    color: #0E1311;
    font-weight: 700;
}

.guide-content a {
    color: #532EAA;
    text-decoration: underline;
    font-weight: 600;
}

.guide-content a:hover {
    color: #764ba2;
}

/* Enhanced Card Styling */
.guide-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(83, 46, 170, 0.2);
}

.guide-card h2 {
    transition: color 0.3s ease;
}

.guide-card:hover h2 {
    color: #532EAA;
}

/* Enhanced Zone Styling */
.visual-zone {
    transition: all 0.3s ease;
}

.visual-zone:hover {
    transform: translateY(-5px);
}

.zone-header h2 {
    position: relative;
}

.zone-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #532EAA 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Enhanced Link Item Styling */
.dir-item {
    position: relative;
    overflow: hidden;
}

.dir-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #532EAA 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dir-item:hover::before {
    transform: scaleY(1);
}

/* Enhanced Search Styling */
.search-wrapper:focus-within {
    transform: translateY(-4px);
}

#masterSearch:focus {
    font-size: 1.1rem;
}

/* Enhanced Badge Styling */
.badge-pill {
    position: relative;
    overflow: hidden;
}

.badge-pill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
