/*
Theme Name: UKVisit Child
Theme URI: https://ukvisit.co.uk/
Description: A premium, high-performance child theme for UKVisit travel gear reviews.
Author: UKVisit
Author URI: https://ukvisit.co.uk/
Template: twentytwentyfive
Version: 1.0.0
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --ukvisit-primary: #1a3a3a;
    --ukvisit-accent: #f3a63b;
    --ukvisit-bg: #ffffff;
    --ukvisit-text: #333333;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ukvisit-text);
    line-height: 1.6;
    margin: 0;
}

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo .brand-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--ukvisit-primary);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-navigation ul li a:hover {
    color: var(--ukvisit-primary);
}

/* ============================================================
   HAMBURGER MENU (Hidden on Desktop)
   ============================================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ukvisit-primary);
    position: relative;
    transition: 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--ukvisit-primary);
    left: 0;
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after  { bottom: -8px; }

/* ============================================================
   BREADCRUMBS — Boxofin-style compact bar
   ============================================================ */
.ukvisit-breadcrumbs {
    background: #f5f5f0; /* Warm cream — matches Boxofin */
    border-top: 1px solid #e5e5e0;
    border-bottom: 1px solid #e5e5e0;
    padding: 16px 0;     /* Taller bar — matches Boxofin */
    margin-bottom: 0;    /* Removed extra white gap */
    font-size: 14px;
}

.ukvisit-breadcrumbs .container {
    display: flex;
    align-items: center;
}

.ukvisit-breadcrumbs ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 0 !important;
}

.ukvisit-breadcrumbs li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.ukvisit-breadcrumbs a {
    color: var(--ukvisit-primary) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: color 0.2s;
}

.ukvisit-breadcrumbs a:hover {
    color: var(--ukvisit-accent) !important;
}

.ukvisit-breadcrumbs span {
    color: #555;
    font-size: 14px;
}

.ukvisit-breadcrumbs .sep {
    color: #999 !important;
    font-size: 14px !important;
    margin: 0 8px !important;
    list-style: none !important;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter form {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
}

.newsletter button {
    padding: 15px 40px;
    border-radius: 50px;
    background: #000;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

/* ============================================================
   FOOTER — Desktop
   ============================================================ */
.site-footer {
    background: #111;
    color: #fff;
    padding: 80px 20px 40px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 140px;
}

.about-col {
    flex: 1 1 300px;
    max-width: 350px;
}

.footer-title {
    color: var(--ukvisit-accent);
    margin: 0 0 25px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-text {
    color: #aaa;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #999 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--ukvisit-accent) !important;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-icon:hover {
    background: var(--ukvisit-accent);
    color: #000 !important;
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links li {
    list-style: none !important;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--ukvisit-accent);
    padding-left: 5px;
}

.support-info p {
    color: #aaa;
    font-size: 15px;
    margin: 0 0 8px;
}

.support-email {
    color: var(--ukvisit-accent);
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.amazon-disclaimer {
    color: #444;
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================================
   MOBILE — max-width 992px
   ============================================================ */
@media (max-width: 992px) {

    /* Show hamburger, hide desktop nav */
    .menu-toggle { display: block; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        padding: 100px 40px 40px;
        transition: right 0.4s ease;
        z-index: 9998;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; gap: 20px; }

    /* Hero */
    .hero-section {
        padding: 80px 20px !important;
        overflow: hidden !important;
    }

    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
    }

    .hero-section .btn {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        display: inline-block !important;
        width: auto !important;
    }

    /* Newsletter stacks on mobile */
    .newsletter form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
        border-radius: 12px;
    }

    /* Footer: left-aligned columns */
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        text-align: left;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social { justify-content: flex-start; }

    .footer-links ul { align-items: flex-start; }

    /* Footer bottom stays centered */
    .footer-bottom { text-align: center; }

    /* Footer column tweaks requested by user */
    .footer-col:first-child { flex: 0 0 30px !important; }
    .footer-col:nth-child(3) { flex: 0 0 30px !important; }
    .footer-col:nth-child(4) { flex: 0 0 30px !important; }

    /* Comparison Table tweaks */
    .comp-chart h2 { font-size: 2rem !important; }
    .comp-cell { padding: 10px !important; font-size: 13px !important; }
    
    /* Pillar content centering on mobile */
    .pillar-content { text-align: center; }

    .pillar-showcase .pro-tip-badge, 
    .pillar-showcase span[style*="background: var(--ukvisit-accent)"] {
        display: table !important;
        margin: 20px auto 20px auto !important;
    }
}

/* ============================================================
   CONTENT & LAYOUT FIXES
   ============================================================ */
.main-layout-container {
    gap: 30px !important;
}

.page-content-wrapper,
.blog-content-wrapper {
    padding: 30px 20px !important;
    border-radius: 15px !important;
}

.entry-title {
    font-size: 1.8rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* ============================================================
   MAGAZINE BLOG LAYOUT (HOME/BLOG PAGE)
   ============================================================ */
.mag-category-section {
    margin-bottom: 70px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
}

.mag-cat-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.mag-cat-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--ukvisit-primary);
    margin: 0 0 10px;
}

.mag-cat-desc {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.mag-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.mag-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.mag-card-link:hover {
    transform: translateY(-5px);
}

/* Hero Card */
.mag-hero-card {
    background: #fdfdfd;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.mag-hero-card .mag-card-link {
    flex-direction: column;
    height: 100%;
}

.mag-hero-img-wrap {
    height: 350px;
    overflow: hidden;
}

.mag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mag-card-link:hover .mag-img {
    transform: scale(1.05);
}

.mag-hero-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-hero-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.mag-hero-excerpt {
    color: #666;
    font-size: 15px;
    margin: 0 0 20px;
    flex-grow: 1;
}

.mag-read-more {
    font-size: 13px;
    font-weight: 800;
    color: var(--ukvisit-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Side List Cards */
.mag-side-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mag-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.mag-list-card .mag-card-link {
    flex-direction: row;
    height: 120px;
    align-items: center;
}

.mag-list-img-wrap {
    width: 120px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.mag-list-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mag-list-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #222;
}

.mag-read-more-small {
    font-size: 11px;
    font-weight: 800;
    color: var(--ukvisit-primary);
    text-transform: uppercase;
}

/* View All Button */
.mag-view-all-wrap {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.mag-view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #f8f8f8;
    color: var(--ukvisit-primary);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.mag-view-all-btn:hover {
    background: var(--ukvisit-primary);
    color: #fff;
    border-color: var(--ukvisit-primary);
}

.mag-view-all-btn .arrow {
    margin-left: 5px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .mag-category-section {
        padding: 20px;
    }
    .mag-grid {
        grid-template-columns: 1fr;
    }
    .mag-hero-img-wrap {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .mag-list-card .mag-card-link {
        flex-direction: column;
        height: auto;
    }
    .mag-list-img-wrap {
        width: 100%;
        height: 200px;
    }
    .mag-list-content {
        padding: 20px;
    }
}
