/*
Theme Name: Explore Pyli
Description: A custom WordPress theme for Explore Pyli.
Author: Antigravity
Version: 1.1.0
*/

:root {
    /* Brand Colors */
    --color-primary: #D35400;
    /* Heritage Orange */
    --color-navy: #1A2B3C;
    /* Deep Navy */
    --color-bg-light: #F8FAFC;
    --color-bg-dark: #0F172A;
    --color-white: #FFFFFF;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-400: #94A3B8;
    --color-slate-500: #64748B;
    --color-slate-900: #0F172A;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Config */
    --border-radius: 12px;
    --transition-speed: 0.8s;
}

/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-light);
    font-family: var(--font-body);
    color: var(--color-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
}

.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    /* Full pill */
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(211, 84, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b04600;
    /* Darker orange */
    transform: translateY(-1px);
}

/* --- Header (Brand Identity) --- */
.site-header {
    border-bottom: 1px solid var(--color-slate-200);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 5rem;
    /* 80px */
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-symbol {
    background-color: var(--color-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.025em;
    display: flex;
}

.logo-text .explore {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
}

.logo-text .pyli {
    font-family: var(--font-heading);
    font-weight: 400;
    /* As per identity code? Input says 'logo-font' which is Montserrat. Input code actually separates them. Explore is extrabold, Pyli is text-primary. Let's match the visual class structure roughly. */
    font-weight: 800;
    /* Actually input used font-extrabold for Explore, and Pyli just had text-primary logo-font. Let's make Pyli bold too but orange. */
    color: var(--color-primary);
}

.custom-logo-link img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Transparent Header Logic (Homepage) */
.site-header.transparent {
    background: transparent;
    border-bottom: none;
    position: absolute;
    width: 100%;
}

.site-header.transparent .logo-text .explore {
    color: var(--color-white);
}

.site-header.transparent .main-navigation a {
    color: var(--color-white);
}

.site-header.transparent .main-navigation a:hover {
    color: var(--color-primary);
}

/* Keep Pyli orange? Yes. Keep symbol orange? Yes. */


/* --- Homepage Slider (Ported & Refined) --- */
/* Core Layout */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out, transform 8s linear;
    opacity: 0;
    transform: scale(1.05);
}

.bg-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.home-view-wrapper {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    /* Desktop default */
}

/* Content */
.hero-content-container {
    position: absolute;
    top: 45%;
    left: 10%;
    transform: translateY(-50%);
    width: 40%;
    z-index: 10;
    color: var(--color-white);
}

.hero-subheading {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.hero-main-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUp 0.8s ease 0.2s forwards;
    color: var(--color-white);
    /* Enforce white on homepage */
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, #E74C3C, var(--color-primary));
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: slideUp 0.8s ease 0.4s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.cards-container {
    position: absolute;
    top: 45%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
    perspective: 1000px;
}

.slider-card {
    width: 250px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #000;
}

.slider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slider-card:hover img {
    transform: scale(1.1);
}

.slider-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: var(--color-white);
    text-align: left;
}

.slider-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white;
}

.slider-card-pin {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Animations */
.slider-card.entering {
    animation: fadeInRight 0.6s forwards;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider Controls (Arrows & Footer) */
.nav-arrows {
    position: absolute;
    bottom: 40px;
    right: 80px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

.slider-footer {
    position: absolute;
    bottom: 40px;
    left: 4rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-icons a {
    margin-right: 1rem;
    color: var(--color-white);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-primary);
}

.pagination {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.8;
    color: white;
}


/* --- Details View --- */
.details-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    z-index: 200;
    display: none;
    overflow-y: auto;
    padding-top: 80px;
}

.details-view.visible {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.details-header {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
}

.details-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-content {
    padding: 4rem 10%;
    background: var(--color-navy);
    color: var(--color-white);
    min-height: 40vh;
}

.details-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.details-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.back-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 210;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.back-btn:hover {
    background: var(--color-white);
    color: var(--color-navy);
}


/* --- Site Footer (Brand Identity) --- */
.site-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-slate-200);
    padding: 3rem 0;
}

.site-footer .footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    md: flex-row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media(min-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: row;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
}

.footer-brand .logo-symbol {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.footer-brand .logo-text {
    font-size: 1.125rem;
}

.copyright {
    color: var(--color-slate-500);
    font-size: 0.875rem;
}

.footer-actions {
    display: flex;
    gap: 1rem;
    color: var(--color-slate-400);
}

.footer-actions a:hover {
    color: var(--color-primary);
}


/* --- Responsive --- */
@media (max-width: 1024px) {

    body,
    html {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .home-view-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding-top: 80px;
        justify-content: flex-start;
        height: auto;
        overflow: visible;
    }

    .hero-content-container {
        position: relative;
        width: 90%;
        margin: 20px auto 30px;
        text-align: center;
        top: auto;
        left: auto;
        transform: none;
    }

    .hero-main-heading {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .cards-container {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        display: flex;
        overflow-x: auto;
        padding: 10px 20px 30px 20px;
        gap: 15px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        margin-bottom: 20px;
    }

    .slider-card {
        min-width: 160px;
        height: 240px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .nav-arrows {
        position: relative;
        justify-content: center;
        margin: 0 auto 30px;
        right: auto;
        bottom: auto;
        order: 3;
    }

    .slider-footer {
        position: relative;
        bottom: auto;
        left: auto;
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
        padding: 0;
        order: 4;
    }

    /* Navigation Stack */
    .site-header .main-navigation ul {
        display: none;
    }

    /* Hide menu on mobile for now or implement toggle */

    .details-title {
        font-size: 2rem;
    }

    .details-header {
        height: 40vh;
    }

    .details-content {
        padding: 2rem 5%;
    }
}

/* --- Brand Identity Utilities (Logo) --- */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-3 {
    gap: 0.75rem;
}

.no-underline {
    text-decoration: none;
}

.bg-primary {
    background-color: var(--color-primary);
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.text-white {
    color: var(--color-white);
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
}

.logo-font {
    font-family: var(--font-heading);
}

.text-2xl {
    font-size: 1.5rem;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.font-extrabold {
    font-weight: 800;
}

.text-navy {
    color: var(--color-navy);
}

.text-primary {
    color: var(--color-primary);
}

/* Ensure transparency overrides work for new logo structure */
.site-header.transparent .text-navy {
    color: var(--color-white) !important;
}

/* --- Theme Structure Expand (Hero, Grid, Content) --- */

/* Hero Banner (Page/Single) */
.hero-banner {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-navy);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-white);
    max-width: 80rem;
    padding: 0 1.5rem;
}

/* Content Containers */
.container-narrow {
    max-width: 800px;
    /* For Pages */
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.container-article {
    max-width: 700px;
    /* For Single Post */
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.entry-content {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-navy);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Front Page Sections */
.section-padding {
    padding: 5rem 0;
}

.bg-white {
    background-color: var(--color-white);
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-slate-500);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--color-navy);
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--color-slate-500);
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}