/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Customized GeneratePress Child Theme for Travel to Unseen Ways. Updates to the parent theme will never overwrite these styles.
 Author:       Travel to Unseen Ways
 Author URI:   https://traveltounseenways.com
 Template:     generatepress
 Version:      2.0.0
*/

:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-glass: rgba(30, 41, 59, 0.55);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

/* Base Body Styles */
body {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.75;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.site {
    background: transparent !important;
}

/* Ambient Space Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 10s infinite ease-in-out alternate;
}
.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(59, 130, 246, 0.14);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.12);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}
.orb-3 {
    width: 320px;
    height: 320px;
    background: rgba(16, 185, 129, 0.08);
    top: 40%;
    left: 50%;
}
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Reading Progress Bar */
#unseen-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #10b981);
    width: 0%;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    transition: width 0.1s;
}

/* Top Bar */
.top-bar {
    background: #090e1a;
    color: #94a3b8;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}
.topbar-socials a:hover {
    color: #38bdf8 !important;
}

/* Main Navigation Header */
.main-header {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-links li a:hover {
    color: #10b981;
}

/* Glowing Yatra Button */
@keyframes yatraGlowPulse {
    0% { box-shadow: 0 0 6px rgba(255, 107, 107, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 14px rgba(255, 107, 107, 0.8); transform: scale(1.02); }
    100% { box-shadow: 0 0 6px rgba(255, 107, 107, 0.4); transform: scale(1); }
}
.yatra-glowing-btn:hover {
    transform: scale(1.04) translateY(-1px) !important;
    box-shadow: 0 0 18px rgba(255, 82, 82, 0.9) !important;
}

/* Hero Buttons */
.btn-hero-primary {
    display: inline-block;
    background: #3b82f6;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-hero-secondary {
    display: inline-block;
    background: #8b5cf6;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}
.btn-hero-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Glassmorphism Class */
.glass-panel {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(56, 189, 248, 0.5) !important;
}

/* =============================================================
   BLOG ARCHIVE & CATEGORY MODERN CARD GRID LAYOUT
   ============================================================= */
body.blog .site-main,
body.archive .site-main,
body.search .site-main {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
    gap: 2.2rem !important;
    max-width: 1240px !important;
    margin: 3.5rem auto !important;
    padding: 0 1.5rem !important;
}

body.blog .site-main article,
body.archive .site-main article,
body.search .site-main article {
    margin: 0 !important;
    height: 100% !important;
}

body.blog .inside-article,
body.archive .inside-article,
body.search .inside-article {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: rgba(30, 41, 59, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 0 !important;
}

body.blog .inside-article:hover,
body.archive .inside-article:hover,
body.search .inside-article:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.14) !important;
}

/* 1. Category Pill Badge (Floats top-left over image) */
.card-cat-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}
.card-cat-badge a {
    color: #38bdf8 !important;
    text-decoration: none !important;
}
.card-cat-badge a:hover {
    color: #34d399 !important;
}

/* 2. Post Image at the top */
body.blog .inside-article .post-image,
body.archive .inside-article .post-image,
body.search .inside-article .post-image {
    order: 1 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 230px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #0f172a !important;
}

body.blog .inside-article .post-image a,
body.archive .inside-article .post-image a,
body.search .inside-article .post-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

body.blog .inside-article .post-image img,
body.archive .inside-article .post-image img,
body.search .inside-article .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.blog .inside-article:hover .post-image img,
body.archive .inside-article:hover .post-image img,
body.search .inside-article:hover .post-image img {
    transform: scale(1.08) !important;
}

/* 3. Entry Header (Meta Date + Title) below Image */
body.blog .inside-article .entry-header,
body.archive .inside-article .entry-header,
body.search .inside-article .entry-header {
    order: 2 !important;
    padding: 1.4rem 1.6rem 0.4rem 1.6rem !important;
    margin: 0 !important;
}

body.blog .inside-article .entry-header .entry-meta,
body.archive .inside-article .entry-header .entry-meta,
body.search .inside-article .entry-header .entry-meta {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0.6rem 0 !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

body.blog .inside-article .entry-header .entry-meta .posted-on,
body.archive .inside-article .entry-header .entry-meta .posted-on {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #94a3b8 !important;
}

body.blog .inside-article .entry-header .entry-meta .posted-on a,
body.archive .inside-article .entry-header .entry-meta .posted-on a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}

body.blog .inside-article .entry-header .entry-meta .byline,
body.archive .inside-article .entry-header .entry-meta .byline {
    display: none !important;
}

body.blog .inside-article .entry-title,
body.archive .inside-article .entry-title,
body.search .inside-article .entry-title {
    margin: 0 0 0.5rem 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.22rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.8em !important;
}

body.blog .inside-article .entry-title a,
body.archive .inside-article .entry-title a,
body.search .inside-article .entry-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

body.blog .inside-article .entry-title a:hover,
body.archive .inside-article .entry-title a:hover,
body.search .inside-article .entry-title a:hover {
    color: #38bdf8 !important;
}

/* 4. Entry Summary (Excerpt) */
body.blog .inside-article .entry-summary,
body.archive .inside-article .entry-summary,
body.search .inside-article .entry-summary {
    order: 3 !important;
    padding: 0 1.6rem 1rem 1.6rem !important;
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    flex-grow: 1 !important;
    margin: 0 !important;
}

body.blog .inside-article .entry-summary p,
body.archive .inside-article .entry-summary p,
body.search .inside-article .entry-summary p {
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.blog .inside-article .entry-summary .read-more,
body.archive .inside-article .entry-summary .read-more {
    display: none !important;
}

/* 5. Clean Custom Card Bottom Action Bar */
.card-action-bar {
    order: 4 !important;
    margin-top: auto !important;
    padding: 1rem 1.6rem 1.2rem 1.6rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.4) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.card-read-time {
    font-size: 0.82rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.card-btn-explore {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.card-btn-explore:hover {
    background: linear-gradient(135deg, #38bdf8, #10b981) !important;
    color: #0f172a !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4) !important;
    transform: translateX(4px) !important;
}

/* Hide bulky default footer meta on archive cards */
body.blog .inside-article footer.entry-meta,
body.archive .inside-article footer.entry-meta,
body.search .inside-article footer.entry-meta {
    display: none !important;
}

/* Full Width Pagination */
body.blog .site-main .paging-navigation,
body.archive .site-main .paging-navigation,
body.blog .site-main .nav-links,
body.archive .site-main .nav-links {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 2.5rem 0 1rem 0 !important;
}
body.blog .nav-links a,
body.blog .nav-links span,
body.archive .nav-links a,
body.archive .nav-links span {
    padding: 8px 16px !important;
    border-radius: 10px !important;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
body.blog .nav-links .current,
body.archive .nav-links .current {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    body.blog .site-main,
    body.archive .site-main,
    body.search .site-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.8rem !important;
    }
}

@media (max-width: 680px) {
    body.blog .site-main,
    body.archive .site-main,
    body.search .site-main {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    body.blog .inside-article .entry-title,
    body.archive .inside-article .entry-title {
        min-height: auto !important;
    }
}

/* Single Post Page Overrides */
.single .inside-article {
    padding: 3.5rem !important;
    border-radius: 20px !important;
}
.single .entry-title {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
.single .entry-content {
    color: #cbd5e1 !important;
    font-size: 1.1rem;
    line-height: 1.85;
}
.single .entry-content p {
    margin-bottom: 1.6rem;
}
.single .entry-content h2,
.single .entry-content h3 {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Single Post Tables */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
}
.single .entry-content table th {
    background: rgba(30, 41, 59, 0.9);
    color: #38bdf8;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.single .entry-content table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #cbd5e1;
}
.single .entry-content table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

/* Internal Links */
.unseen-internal-link {
    color: #38bdf8 !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-color: rgba(56, 189, 248, 0.4) !important;
    text-underline-offset: 4px;
    transition: all 0.2s;
}
.unseen-internal-link:hover {
    color: #34d399 !important;
    text-decoration-color: #34d399 !important;
}

/* Community Cards */
.community-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff !important;
    transition: all 0.3s ease;
}
.community-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}
.community-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.community-card.insta .community-icon { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #fff; }
.community-card.facebook .community-icon { background: #1877f2; color: #fff; }
.community-card.whatsapp .community-icon { background: #25d366; color: #fff; }
.community-card.youtube .community-icon { background: #ff0000; color: #fff; }
.community-info h4 { margin: 0; font-size: 1.05rem; font-family:'Outfit',sans-serif; text-align: left; }
.community-info span { font-size: 0.82rem; color: #94a3b8; text-align: left; display: block; }

/* Social Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000000; }
.share-btn.pin { background: #e60023; }
.share-btn.copy { background: #475569; }

/* Sidebar Widget Dark Styling */
.sidebar .widget {
    background: rgba(30, 41, 59, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #cbd5e1 !important;
    padding: 1.8rem !important;
}
.sidebar .widget-title {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
}
.sidebar a {
    color: #cbd5e1 !important;
}
.sidebar a:hover {
    color: #38bdf8 !important;
}

/* Hide Default GP Copyright and Nav bar since replaced */
.site-info { display: none !important; }
.main-navigation { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-wrapper { display: none !important; }
    .footer .custom-container > div:first-child { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .single .inside-article { padding: 2rem 1.4rem !important; }
}