/**
 * Casita Palmera - Guide Pages Styles
 * Editorial / Magazine Style for content-rich guide pages
 */

/* ============================================
   BASE STYLES
   ============================================ */
body.guide-page {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
}

/* ============================================
   NAVIGATION - Back Button & Language Switcher
   ============================================ */
.back-home {
    position: fixed;
    top: var(--space-6);
    left: var(--space-6);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-home:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.back-home i {
    font-size: 1.1em;
}

.lang-nav {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lang-nav a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.lang-nav a:hover,
.lang-nav a.active {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.article-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    max-height: 650px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--space-16) var(--space-10);
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-sm);
}

/* Override main.css hero-title styles for guide pages */
.guide-page .hero-title {
    font-family: var(--font-family-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: white;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    font-weight: 400;
    opacity: 1;
    transform: none;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   ARTICLE CONTAINER
   ============================================ */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-20);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-10);
    border-bottom: 1px solid var(--color-gray-200);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--color-primary);
}

/* ============================================
   GUIDE SECTIONS - Typography
   ============================================ */
.guide-section {
    margin-bottom: var(--space-12);
}

.guide-section h2 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-weight: 400;
    position: relative;
    padding-left: var(--space-5);
    line-height: 1.3;
}

.guide-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: calc(100% - 12px);
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.guide-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: var(--space-8) 0 var(--space-4);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.guide-section p {
    font-size: var(--font-size-base);
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.guide-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   LIST CARDS
   ============================================ */
.guide-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

.guide-section li {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    padding-left: calc(var(--space-5) + 16px);
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

.guide-section li:hover {
    border-color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(9, 120, 108, 0.08);
}

.guide-section li::before {
    content: "";
    position: absolute;
    left: var(--space-5);
    top: calc(var(--space-4) + 7px);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.guide-section li strong {
    color: var(--text-primary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-14) var(--space-10);
    text-align: center;
    margin-top: var(--space-16);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    color: white;
    margin-bottom: var(--space-3);
    font-weight: 400;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-7);
    position: relative;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: white;
    color: var(--color-primary);
    padding: var(--space-4) var(--space-9);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-btn i {
    transition: transform 0.2s ease;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.article-footer {
    background: var(--text-primary);
    padding: var(--space-12) var(--space-6);
    text-align: center;
    margin-top: var(--space-20);
}

.article-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

.article-footer .brand {
    color: white;
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1023px) {
    .back-home {
        padding: var(--space-3) var(--space-4);
    }

    .back-home span {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    .article-hero {
        height: 55vh;
        min-height: 380px;
        max-height: 500px;
    }

    .hero-content {
        padding: var(--space-10) var(--space-6);
    }

    .guide-page .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .article-container {
        padding: var(--space-10) var(--space-5) var(--space-14);
    }

    .article-meta {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .guide-section {
        margin-bottom: var(--space-10);
    }

    .guide-section h2 {
        font-size: var(--font-size-2xl);
        padding-left: var(--space-4);
    }

    .guide-section h3 {
        font-size: var(--font-size-base);
        margin-top: var(--space-6);
    }

    .guide-section p {
        font-size: var(--font-size-sm);
        line-height: 1.8;
    }

    .guide-section li {
        padding: var(--space-4);
        padding-left: calc(var(--space-4) + 14px);
    }

    .guide-section li::before {
        left: var(--space-4);
        top: calc(var(--space-4) + 6px);
    }

    .cta-section {
        padding: var(--space-10) var(--space-6);
        margin-top: var(--space-12);
        border-radius: var(--radius-xl);
    }

    .cta-section h3 {
        font-size: var(--font-size-2xl);
    }

    .cta-section p {
        font-size: var(--font-size-base);
    }

    .cta-btn {
        padding: var(--space-4) var(--space-7);
        font-size: var(--font-size-sm);
    }

    .back-home {
        top: var(--space-4);
        left: var(--space-4);
        padding: var(--space-2) var(--space-3);
    }

    .lang-nav {
        top: var(--space-4);
        right: var(--space-4);
        padding: 4px;
    }

    .lang-nav a {
        padding: 6px 10px;
        font-size: 11px;
    }

    .article-footer {
        padding: var(--space-10) var(--space-5);
        margin-top: var(--space-14);
    }
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .article-hero {
        height: 50vh;
        min-height: 320px;
    }

    .hero-content {
        padding: var(--space-8) var(--space-4);
    }

    .hero-tag {
        font-size: 10px;
        padding: 5px 12px;
    }

    .guide-page .hero-title {
        font-size: 1.5rem;
    }

    .article-container {
        padding: var(--space-8) var(--space-4) var(--space-12);
    }

    .guide-section h2 {
        font-size: var(--font-size-xl);
    }

    .guide-section li {
        padding: var(--space-3);
        padding-left: calc(var(--space-3) + 12px);
        border-radius: var(--radius-md);
    }

    .guide-section li::before {
        left: var(--space-3);
        top: calc(var(--space-3) + 5px);
    }
}

/* ============================================
   ACCESSIBILITY - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .back-home,
    .lang-nav a,
    .guide-section li,
    .cta-btn {
        transition: none;
    }

    .back-home:hover,
    .guide-section li:hover,
    .cta-btn:hover {
        transform: none;
    }
}
