/*
Theme Name: PxBoom
Theme URI: https://pxboom.com
Author: PxBoom
Description: Px Boom is a premium website for images and photos.
Version: 1.0.0
*/

:root {
    --primary: #E63946;
    --bg-body: #ffffff;
    --bg-card: #000000;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --container: 1200px;
}

body.dark-mode {
    --bg-body: #121212;
    --text-main: #f1f1f1;
    --text-muted: #a0a0a0;
    --border: #333;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: background 0.3s ease;
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* --- CARD DESIGN (Overlay + Heart) --- */
.blog-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
    background: var(--bg-card);
    transition: transform 0.3s ease;
}

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

.card-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image { transform: scale(1.05); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.95) 100%);
    pointer-events: none;
}

.card-content {
    position: absolute;
    bottom: 0;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.card-cat {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    margin: 10px 0 5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- REACTION HEART --- */
.like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.like-btn:hover, .like-btn.liked {
    background: #fff;
    color: var(--primary);
    transform: scale(1.1);
}

.like-count {
    position: absolute;
    top: 60px;
    right: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* --- HEADER & NAV --- */
.site-header {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.site-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    margin: 0;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 15px;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile Nav */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .menu-toggle { display: block; font-size: 24px; background: none; border: none; color: var(--text-main); }
    .main-nav { 
        display: none; position: absolute; top: 70px; left: 0; right: 0; 
        background: var(--bg-body); padding: 20px; border-bottom: 1px solid var(--border); 
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
}

/* =========================================
   NEW STOCK PHOTO HERO
   ========================================= */

.stock-hero {
    position: relative;
    height: 550px; /* Tall, immersive hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #333;
    /* CHANGE THIS URL to your own hero image if you want */
    background-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1953&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0; /* Remove bottom margin to blend with body */
}

/* Dark Overlay (Essential for text readability) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* 50% Black overlay */
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px; /* Limits width for readability */
}

/* Typography */
.hero-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem); /* Responsive font */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Big Search Bar */
.hero-search-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
}

.search-wrapper {
    display: flex;
    background: #fff;
    border-radius: 8px; /* Slightly rounded, not pill */
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #333;
    outline: none;
}

.search-btn {
    background: #fff;
    color: #666;
    border: none;
    width: 60px;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    color: var(--primary);
}

/* Tags Styling */
.hero-tags {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.tag-label {
    font-weight: bold;
    margin-right: 5px;
}

.hero-tags a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 5px;
    transition: 0.2s;
}

.hero-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   MOBILE ADJUSTMENTS (Updated)
   ========================================= */
@media (max-width: 768px) {
    /* Hero Height */
    .stock-hero { 
        height: 400px; 
    }

    /* Search Bar Compactness */
    .search-wrapper { 
        padding: 4px; 
    }
    .search-input { 
        padding: 10px; 
        font-size: 1rem; 
    }

    /* HERO TAGS: Visible on Mobile now */
    .hero-tags {
        display: flex;       /* Enable Flexbox */
        flex-wrap: wrap;     /* Allow wrapping to next line */
        justify-content: center; /* Center align */
        gap: 10px;           /* Space between tags */
        margin-top: 15px;
        font-size: 0.85rem;  /* Slightly smaller text */
        line-height: 1.6;
    }
    
    .tag-label {
        display: block;      /* Force label to own line or inline-block */
        width: 100%;         /* Make "Trending:" sit on top if you prefer, or remove this line to keep inline */
        margin-bottom: 5px;
        opacity: 0.8;
    }
    
    /* Make touch targets easier to hit */
    .hero-tags a {
        background: rgba(255,255,255,0.2);
        padding: 4px 10px;
        border-radius: 15px;
        color: #fff;
    }
}

/* --- SINGLE POST --- */
.single-hero {
    height: 500px;
    border-radius: 20px;
    margin: 30px auto 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9)); z-index: 1; }

.hero-content {
    position: relative; z-index: 2;
    padding: 40px; width: 100%;
    color: white;
}

.entry-title { font-size: clamp(2rem, 5vw, 3.5rem); margin: 10px 0; line-height: 1.1; }

/* Share Box */
.share-box {
    display: flex; gap: 10px; margin: 30px 0;
}
.share-btn {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}
.fb { background: #3b5998; } .tw { background: #1da1f2; } .wa { background: #25d366; }
/* --- ACCESSIBLE LIKE BUTTON --- */
.like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    
    /* High Contrast Design */
    background-color: #ffffff; 
    color: #E63946;
    border: 2px solid #E63946;
    
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.like-btn:hover, .like-btn:focus {
    background-color: #E63946;
    color: #ffffff;
    transform: scale(1.1);
    outline: 2px solid #fff; /* Focus indicator */
}

/* Ensure focus is visible for accessibility */
.like-btn:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.like-count {
    position: absolute;
    top: 65px; /* Moved slightly down */
    right: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0,0,0,0.7); /* Dark bg for text readability */
    padding: 2px 6px;
    border-radius: 4px;
}
/* =========================================
   SLEEK & ACCESSIBLE FOOTER (SVG Icons)
   ========================================= */
.site-footer {
    background-color: #0f172a; /* Deep Navy (High Contrast Base) */
    color: #f8fafc;            /* Bright White Text */
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle top separator */
}

.footer-inner {
    display: grid;
    /* Responsive Grid: Stacks on mobile, 3 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    align-items: start;
}

/* 1. Brand Section */
.footer-title {
    color: #ffffff;
    font-size: 2rem;       /* Large, confident typography */
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;  /* Modern tight tracking */
    line-height: 1;
}

.footer-desc {
    font-size: 1.05rem;    /* Accessible size (approx 17px) */
    line-height: 1.6;
    color: #cbd5e1;        /* Light Grey (Passes AA contrast) */
    margin-bottom: 25px;
    max-width: 300px;
}

.copyright {
    font-size: 0.9rem;
    color: #94a3b8;        /* Slightly darker for secondary text */
    margin-top: 20px;
}

/* 2. Headings & Nav */
.footer-heading {
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px; /* Spaced out caps */
    font-weight: 700;
    opacity: 0.9;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #cbd5e1;       /* Light Grey */
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #ffffff;       /* Pure White on hover */
    transform: translateX(5px);
    text-decoration: underline;
    text-decoration-thickness: 2px; /* Thicker underline for visibility */
}

/* 3. Sleek SVG Social Icons */
.footer-social {
    display: flex;
    gap: 20px; /* Airy spacing */
    align-items: center;
}

.social-icon {
    color: #cbd5e1; /* Icon Color */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px; /* Soft square touch target */
}

.social-icon svg {
    display: block; /* Removes weird spacing */
}

/* Hover Effects */
.social-icon:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1); /* Subtle glass effect */
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-footer { padding: 60px 0 40px; }
    .footer-inner { 
        text-align: center; 
        gap: 45px;
    }
    .footer-desc { margin-left: auto; margin-right: auto; }
    .footer-nav ul { align-items: center; }
    .footer-social { justify-content: center; }
}

/* =========================================
   PAGINATION (Mobile Friendly & Beautiful)
   ========================================= */
.pagination-wrapper {
    margin: 60px 0 80px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    flex-wrap: wrap; /* Prevents breaking on tiny screens */
    gap: 8px; /* Space between buttons */
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px; /* Large touch target */
    height: 48px;
    padding: 0 15px;
    
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px; /* Pill shape */
    
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Hover State */
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Active State (Current Page) */
.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3); /* Glow effect */
}

/* Dark Mode Support */
body.dark-mode .pagination .page-numbers {
    background: #1e1e1e;
    border-color: #333;
    color: #fff;
}
body.dark-mode .pagination .page-numbers:hover {
    border-color: var(--primary);
}
/* =========================================
   IMAGE ENHANCEMENTS (Download & Pinterest)
   ========================================= */

/* 1. Image Wrapper (Relative container) */
.px-image-wrapper {
    position: relative;
    display: inline-block; /* Fits the image width */
    max-width: 100%;
    margin: 20px 0;
}

.px-image-wrapper img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 8px; /* Optional rounded corners */
}

/* 2. Pinterest Button (Top Right Overlay) */
.px-pin-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #bd081c; /* Pinterest Red */
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    opacity: 0; /* Hidden by default */
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.px-image-wrapper:hover .px-pin-btn {
    opacity: 1; /* Show on hover */
    transform: translateY(0);
}

.px-pin-btn:hover {
    background-color: #fff;
    color: #bd081c;
}

/* 3. Download Button (Below Image) */
.px-dl-btn {
    display: block;
    width: 100%;
    max-width: 250px; /* Restrict width */
    margin: 0 auto 30px; /* Centered with bottom spacing */
    background-color: var(--primary); /* Uses your theme color */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.px-dl-btn:hover {
    filter: brightness(1.1);
}

.px-dl-btn.downloading {
    background-color: #666; /* Grey when waiting */
    cursor: wait;
}


/* =========================================
   SINGLE POST CATEGORY PILL
   ========================================= */
/* Ensure it sits above the image/overlay */
.hero-content {
    position: relative;
    z-index: 10;
}
/* =========================================
   BREADCRUMBS STYLING
   ========================================= */
.single-breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links inside breadcrumbs */
.single-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.single-breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Separator styling (auto-generated by RankMath) */
.rank-math-breadcrumb p {
    margin: 0;
}
.rank-math-breadcrumb .separator {
    margin: 0 5px;
    opacity: 0.6;
}