/* ==========================================
   GetInfoUs.com — Home Page Styles
   Premium Information Portal Design
   ========================================== */

/* ---- Google Font Override ---- */
.home-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #06B6D4, #4F46E5, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #0f172a 60%, #1a1a2e 100%);
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-100px) translateX(30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

.home-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.home-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ---- Hero Search ---- */
.home-search-container {
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.home-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.home-search-box:focus-within {
    border-color: rgba(79, 70, 229, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15);
}

.home-search-box .search-icon {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.home-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: white;
    font-family: inherit;
}

.home-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.search-suggestions span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-suggestions span:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
    color: white;
}

/* ---- Hero Stats ---- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #06B6D4, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
.home-section {
    padding: 4rem 0;
}

.section-container {
    max-width: 1280px;
    width: 92%;
    margin: 0 auto;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.trending-badge { background: #FEE2E2; color: #DC2626; }
.country-badge { background: #DBEAFE; color: #2563EB; }
.tools-badge { background: #FEF3C7; color: #D97706; }
.cat-badge { background: #E0E7FF; color: #4F46E5; }

.home-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #06B6D4;
    gap: 0.6rem;
}

/* ==========================================
   TRENDING SECTION
   ========================================== */
.trending-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
}

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

.trending-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.trending-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.trending-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trending-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.trending-category {
    background: rgba(79, 70, 229, 0.2);
    color: #818CF8;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trending-country {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.trending-card h3 {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.trending-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.trending-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trending-footer span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.trending-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==========================================
   COUNTRIES SECTION
   ========================================== */
.countries-section {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
}

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

.country-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usa-card::before { background: linear-gradient(90deg, #B91C1C, #ffffff, #1D4ED8); }
.uk-card::before { background: linear-gradient(90deg, #DC2626, #ffffff, #1D4ED8); }
.canada-card::before { background: linear-gradient(90deg, #DC2626, #ffffff, #DC2626); }
.australia-card::before { background: linear-gradient(90deg, #1D4ED8, #ffffff, #DC2626); }
.germany-card::before { background: linear-gradient(90deg, #111, #DC2626, #F59E0B); }

.country-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.country-card:hover::before {
    opacity: 1;
}

.country-flag {
    font-size: 2.75rem;
    flex-shrink: 0;
}

.country-info {
    flex: 1;
    min-width: 0;
}

.country-info h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.country-info > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.country-tags span {
    background: rgba(79, 70, 229, 0.15);
    color: #818CF8;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    text-align: right;
}

.country-stats div {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.country-stats strong {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================
   QUICK TOOLS SECTION
   ========================================== */
.tools-section {
    background: linear-gradient(180deg, #0f172a 0%, #0c0f1a 100%);
}

.tools-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.quick-tool-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
}

.quick-tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.qt-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.quick-tool-card:hover .qt-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-tool-card h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.quick-tool-card p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ==========================================
   CATEGORIES SECTION
   ========================================== */
.categories-section {
    background: linear-gradient(180deg, #0c0f1a 0%, #0f172a 100%);
}

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

.category-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.cat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-card h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.category-card span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: #0f172a;
    padding: 4rem 0 5rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
}

.cta-card h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-card > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0.5rem;
}

.cta-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form input:focus {
    border-color: rgba(79, 70, 229, 0.5);
}

.cta-note {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ==========================================
   DROPDOWN MENU (Header)
   ========================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

/* ---- Mobile Sub-Links ---- */
.mobile-nav-sub {
    padding-left: 2.5rem !important;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.03) !important;
}

/* ---- Footer Brand ---- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.footer-logo strong {
    color: #06B6D4;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .home-hero-title {
        font-size: 2.5rem;
    }
    .countries-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }
    .home-hero-title {
        font-size: 2rem;
    }
    .home-hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .stat-num {
        font-size: 1.25rem;
    }
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .tools-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-card {
        padding: 2rem 1.5rem;
    }
    .cta-form {
        flex-direction: column;
    }
    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .country-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .country-stats {
        flex-direction: row;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: 1.65rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-stat {
        width: 40%;
    }
    .tools-quick-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   DARK THEME OVERRIDES FOR HOME
   ========================================== */
body.dark-mode .nav-dropdown-menu {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .nav-dropdown-menu a:hover {
    background: rgba(79, 70, 229, 0.2);
}
