/**
 * Homepage 2026 Styles
 * Extracted from template.php + newer-home-part2.php for cacheability
 */

/* === Part 1: Hero, Search, Categories (from template.php) === */

:root {
    --primary: #00498f;
    --primary-dark: #003366;
    --accent: #00c2ff;
    --gold: #ffd700;
    --success: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

#wrapper { background: transparent !important; box-shadow: none !important; }

.hero-compact {
    background: linear-gradient(180deg, #e8f4fc 0%, #f0f7fc 100%);
    padding: 50px 0 60px;
    border-bottom: 1px solid var(--gray-200);
}

.hero-compact-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    max-width: 240px;
    height: auto;
}

.hero-compact h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

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

.hero-compact .tagline {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right .premium-listing-modern {
    margin: 0;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .hero-compact-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-left { text-align: center; }
    .hero-right { margin-top: 30px; }
}

.hero-search-bar {
    max-width: 640px;
    margin: 0 0 24px;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,73,143,0.15);
    border: 1px solid var(--gray-200);
}

@media (max-width: 1100px) {
    .hero-search-bar { margin: 0 auto 24px; }
}

.hero-search-bar form {
    display: flex;
    gap: 6px;
}

.hero-search-bar input[type="text"] {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    background: var(--gray-50);
}

.hero-search-bar input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-bar input[type="submit"]:hover {
    background: var(--primary-dark);
}

.hero-stats-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 640px;
}

@media (max-width: 1100px) {
    .hero-stats-row { justify-content: center; gap: 40px; margin: 0 auto; }
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 60px;
}

.actions-nav {
    max-width: 1600px;
    margin: 0 auto;
    list-style: none;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.actions-nav li {
    display: table-cell;
    padding: 0 4px;
}

.actions-nav a {
    display: block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    white-space: nowrap;
}

.actions-nav a svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

.actions-nav a.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.actions-nav a.accent {
    background: #ffd700;
    color: #5a4a00;
    border-color: #e6c200;
}

.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 60px;
}

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

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.category-mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 70px;
}

.category-card-2026 {
    background: white;
    border-radius: 14px;
    padding: 24px 18px;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card-2026:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.category-card-2026:hover::before { transform: scaleX(1); }

.category-card-2026 .icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.category-card-2026:hover .icon { transform: scale(1.1); }

.category-card-2026 h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    text-align: center;
}

.category-card-2026 p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    text-align: center;
}

/* Category Search Box */
.category-search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.category-search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.category-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 6px 25px rgba(0, 73, 143, 0.2);
}

.category-search-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary);
    pointer-events: none;
    z-index: 1;
}

.category-search-box input {
    width: 100%;
    border: none;
    padding: 16px 24px 16px 52px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    background: transparent;
    color: var(--gray-900);
}

.category-search-box input::placeholder { color: var(--gray-500); }

.category-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.category-dropdown.active { display: block; }

.category-dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-900);
}

.category-dropdown-item:last-child { border-bottom: none; }
.category-dropdown-item:hover { background: var(--gray-50); padding-left: 24px; }
.category-dropdown-item .cat-icon { width: 24px; height: 24px; flex-shrink: 0; }
.category-dropdown-item .cat-name { font-weight: 500; color: var(--primary); flex: 1; font-size: 14px; }
.category-dropdown-item .cat-desc { font-size: 13px; color: var(--gray-500); margin-left: auto; }
.category-dropdown-empty { padding: 20px; text-align: center; color: var(--gray-500); font-size: 14px; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-compact { padding: 30px 0; }
    .hero-compact-inner { padding: 0 15px; }
    .hero-left h1 { font-size: 28px; }
    .hero-left .tagline { font-size: 14px; }
    .hero-logo img { max-width: 180px; }
    .hero-search-bar { max-width: 100%; }
    .hero-search-bar input[type="text"] { padding: 14px 16px; font-size: 15px; }
    .hero-search-bar input[type="submit"] { padding: 14px 20px; font-size: 14px; }
    .hero-stats-row { max-width: 100%; gap: 20px; justify-content: center; }
    .hero-stat-number { font-size: 22px; }
    .hero-stat-label { font-size: 11px; }
    .main-content { padding: 40px 15px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 15px; }
    .category-mega-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
    .category-card-2026 { padding: 16px 12px; }
    .category-card-2026 .icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .category-card-2026 h3 { font-size: 13px; }
    .category-card-2026 p { font-size: 10px; }
    .category-search-container { max-width: 100%; padding: 0; margin-bottom: 30px; }
    .category-search-box input { padding: 14px 20px 14px 48px; font-size: 15px; }
    .actions-bar { padding: 12px 15px; overflow-x: auto; }
    .actions-nav { display: flex; gap: 8px; flex-wrap: nowrap; }
    .actions-nav li { display: inline-block; }
    .actions-nav a { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
    .actions-nav a svg { width: 14px; height: 14px; margin-right: 4px; }
}

@media (max-width: 480px) {
    .hero-compact-inner { padding: 0 12px; }
    .hero-left h1 { font-size: 24px; }
    .hero-left .tagline { font-size: 13px; }
    .hero-logo img { max-width: 150px; }
    .hero-stats-row { flex-direction: column; gap: 15px; align-items: center; }
    .main-content { padding: 30px 12px; }
    .category-mega-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card-2026 { padding: 14px 10px; }
    .category-card-2026 .icon { width: 32px; height: 32px; }
    .category-card-2026 h3 { font-size: 12px; }
    .category-card-2026 p { display: none; }
    .section-header h2 { font-size: 22px; }
    .section-header p { font-size: 14px; }
    .actions-nav a { padding: 8px 10px; font-size: 11px; }
}

/* === Part 2: Features, Community, Testimonials, CTA (from newer-home-part2.php) === */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 70px;
}

.feature-card-2026 {
    background: white;
    border-radius: 18px;
    padding: 36px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card-2026:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.feature-icon-2026 {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-2026 svg { width: 32px; height: 32px; fill: white; }

.feature-card-2026 h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card-2026 p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.feature-link:hover { gap: 10px; }

.community-section {
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--primary) 0%, #0066cc 100%);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 60px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.community-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    border: 50px solid rgba(0, 194, 255, 0.1);
    border-radius: 50%;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.community-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.community-header p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    text-align: center;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.community-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.community-card svg {
    width: 44px;
    height: 44px;
    fill: white;
    margin-bottom: 14px;
}

.community-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.community-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    width: 100%;
}

.testimonials-showcase {
    background: white;
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 70px;
    border: 1px solid var(--gray-200);
}

.testimonials-showcase .section-header {
    margin-bottom: 40px;
    text-align: center;
}

.testimonials-showcase .section-header p {
    text-align: center;
}

.testimonials-showcase .section-header h2 {
    font-size: 32px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.testimonial-text {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 14px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--gray-500);
}

.testimonials-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.testimonials-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.testimonials-cta a:hover {
    text-decoration: underline;
}

.cta-section {
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--primary) 0%, #0066cc 100%);
    border-radius: 24px;
    padding: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 70px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 60px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    border: 50px solid rgba(0, 194, 255, 0.1);
    border-radius: 50%;
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.cta-section > .cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cta-btn.white {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #5a4a00;
    border: 2px solid #e6c200;
    font-weight: 700;
}

.cta-btn.white:hover {
    background: linear-gradient(135deg, #ffe44d 0%, #fff176 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.cta-btn.outline {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    font-weight: 700;
}

.cta-btn.outline:hover {
    background: #f0f7fc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.howto-section { margin-bottom: 40px; }

.howto-header {
    text-align: center;
    margin-bottom: 40px;
}

.howto-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.howto-card {
    background: white;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.3s ease;
}

.howto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.howto-card svg {
    width: 36px;
    height: 36px;
    fill: var(--primary);
    margin-bottom: 10px;
}

.howto-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

@media (max-width: 1400px) {
    .community-section { padding: 50px 40px; }
    .cta-section { padding: 50px 40px; }
    .howto-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .community-section { padding: 40px 20px; }
    .community-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cta-section { padding: 40px 20px; }
    .cta-section h2 { font-size: 28px; }
    .howto-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-showcase { padding: 30px 20px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .feature-card-2026 { padding: 24px 20px; }
    .feature-card-2026 h3 { font-size: 18px; }
    .feature-card-2026 p { font-size: 14px; }
    .testimonials-showcase .section-header h2 { font-size: 26px; }
    .testimonial-card { padding: 20px; }
    .testimonial-text { font-size: 14px; }
    .cta-section { border-radius: 16px; }
    .cta-section h2 { font-size: 26px; }
    .cta-section p { font-size: 15px; }
    .cta-btn { padding: 14px 24px; font-size: 15px; }
    .community-section { border-radius: 16px; }
    .community-header h2 { font-size: 26px; }
    .community-header p { font-size: 14px; }
    .community-card { padding: 20px; }
    .community-card h3 { font-size: 14px; }
    .community-card p { font-size: 12px; }
    .howto-section { padding: 30px 20px; }
    .howto-section h3 { font-size: 22px; }
    .howto-card h4 { font-size: 13px; }
}

@media (max-width: 480px) {
    .community-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .cta-btn { width: 100%; justify-content: center; }
    .howto-grid { grid-template-columns: 1fr; }
    .feature-card-2026 { padding: 20px 16px; }
    .feature-icon-2026 { width: 50px; height: 50px; }
    .testimonials-showcase { padding: 25px 15px; margin-bottom: 40px; }
    .cta-section { margin-bottom: 40px; }
    .community-section { margin-bottom: 40px; }
    .community-card svg { width: 36px; height: 36px; }
    .howto-grid { gap: 12px; }
    .howto-card { padding: 16px; }
}
