/*
Theme Name: PromptLab Pro
Theme URI: https://example.com/promptlab-pro
Author: PromptLab
Description: An ultra-lightweight, fast-loading, SEO-optimized theme for AI prompt websites. No jQuery, no Bootstrap. Pure HTML5 & CSS3.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promptlab
*/

:root {
    --bg-color: #111111;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --accent-yellow: #FFD700;
    --gradient-hero: linear-gradient(135deg, #ff7e5f, #feb47b, #ff99cc);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 8px 32px rgba(255, 215, 0, 0.15);
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-system);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-yellow); text-decoration: none; transition: var(--transition); }
a:hover { filter: brightness(1.2); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-title { font-size: 24px; font-weight: bold; color: #fff; letter-spacing: 1px; }
.main-nav ul { list-style: none; display: flex; gap: 20px; }
.main-nav a { color: var(--text-main); font-weight: 500; }
.main-nav a:hover { color: var(--accent-yellow); }

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    margin-bottom: 40px;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; -webkit-text-fill-color: var(--text-muted); }
.search-wrapper { max-width: 600px; margin: 0 auto; position: relative; }
.search-form { display: flex; gap: 10px; background: var(--card-bg); padding: 5px; border-radius: 50px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.search-input { flex: 1; background: transparent; border: none; color: #fff; padding: 15px 25px; font-size: 16px; outline: none; border-radius: 50px; }
.search-btn { background: var(--accent-yellow); color: #111; border: none; padding: 15px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: var(--transition); }
.search-btn:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.ajax-search-results {
    position: absolute; top: 100%; left: 0; right: 0; background: #222; border: 1px solid var(--border-color); border-radius: 10px; margin-top: 10px;
    list-style: none; text-align: left; max-height: 300px; overflow-y: auto; z-index: 100;
    display: none;
}
.ajax-search-results li { padding: 10px 20px; border-bottom: 1px solid var(--border-color); }
.ajax-search-results li:last-child { border-bottom: none; }
.ajax-search-results a { color: #fff; display: block; }
.ajax-search-results a:hover { color: var(--accent-yellow); }

/* Post Grid */
.section-title { font-size: 2rem; margin-bottom: 30px; color: #fff; border-left: 4px solid var(--accent-yellow); padding-left: 15px; }
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex; flex-direction: column;
    height: 100%;
    min-width: 0;
}
/* Safeguard: Hide any invisible tracking pixels or injected ad containers inside the grid so they don't consume a grid cell */
.post-grid > *:not(article) {
    display: none !important;
}
.post-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-glow); border-color: rgba(255,215,0,0.3); }
.post-thumb { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #222; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--transition); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; color: var(--accent-yellow); }
.post-title a { color: inherit; }
.post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 10px; }
.post-excerpt { font-size: 0.95rem; color: var(--text-muted); flex: 1; }

/* Single Post */
.single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 40px 0; }
.single-header { margin-bottom: 30px; }
.single-title { font-size: 2.5rem; color: var(--accent-yellow); margin-bottom: 15px; }
.single-thumb { border-radius: 15px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.responsive-single-img { width: 100%; height: auto; display: block; margin: 0; border-radius: 15px; }
.entry-content { font-size: 1.1rem; color: var(--text-main); word-wrap: break-word; overflow-wrap: break-word; }
.entry-content h2, .entry-content h3 { color: #fff; margin: 30px 0 15px; }
.entry-content p { margin-bottom: 20px; }
.entry-content pre, .entry-content code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Prompt Box Layout */
.prompt-wrapper {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.prompt-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: block;
    margin: 0 0 15px 0;
}
.view-btn {
    background: linear-gradient(135deg, #9b59b6, #2ecc71);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
    align-self: center;
}
.copy-btn {
    background: linear-gradient(135deg, #9b59b6, #2ecc71);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: var(--transition);
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.prompt-action-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.action-icon.wa-share { color: #25D366; border-color: #25D366; }
.action-icon.wa-share:hover { background: #25D366; color: #fff; }
.action-icon.tg-share { color: #0088cc; border-color: #0088cc; }
.action-icon.tg-share:hover { background: #0088cc; color: #fff; }
.action-icon.gemini-link { color: #1a73e8; border-color: #1a73e8; }
.action-icon.gemini-link:hover { background: #1a73e8; color: #fff; }
.action-icon.gpt-link { color: #10a37f; border-color: #10a37f; }
.action-icon.gpt-link:hover { background: #10a37f; color: #fff; }
.action-icon.copy-icon-btn { color: #333; border-color: #333; }
.action-icon.copy-icon-btn:hover { background: #333; color: #fff; }
.view-btn:hover, .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}
.prompt-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.prompt-box.hidden {
    display: none;
}
.prompt-text {
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: #333;
    margin-bottom: 0;
}

/* CTA Buttons */
.cta-section { display: flex; gap: 15px; margin: 40px 0; }
.btn-whatsapp { background: #25D366; color: #fff; padding: 12px 25px; border-radius: 8px; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; }
.btn-telegram { background: #0088cc; color: #fff; padding: 12px 25px; border-radius: 8px; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover, .btn-telegram:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); color: #fff; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; align-self: start; }
.widget { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 15px; padding: 25px; margin-bottom: 30px; margin-top: 30px; }
.widget-title { font-size: 1.2rem; color: #fff; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.widget ul { list-style: none; }
.widget li { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.widget li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.recent-post-link { display: flex; align-items: center; gap: 15px; }
.recent-post-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post-title { font-size: 0.95rem; line-height: 1.4; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.recent-post-link:hover .recent-post-title { color: var(--accent-yellow); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-main); }
.breadcrumbs a:hover { color: var(--accent-yellow); }

/* Load More & Pagination */
.pagination-wrapper { text-align: center; margin: 40px 0; }
.btn-load-more { background: transparent; color: var(--accent-yellow); border: 2px solid var(--accent-yellow); padding: 12px 40px; border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: var(--transition); }
.btn-load-more:hover { background: var(--accent-yellow); color: #111; box-shadow: var(--shadow-glow); }
.nav-links { display: flex; justify-content: center; gap: 10px; }
.page-numbers { padding: 10px 15px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 5px; color: #fff; }
.page-numbers.current, .page-numbers:hover { background: var(--accent-yellow); color: #111; border-color: var(--accent-yellow); }

/* Footer */
.site-footer { background: #0a0a0a; border-top: 1px solid var(--border-color); padding: 40px 0 20px; text-align: center; margin-top: 60px; }
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--accent-yellow); color: #111; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); border: none; font-size: 20px; z-index: 99; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }

/* How to Use Box */
.how-to-use-box {
    margin: 50px 0;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}
.how-to-title {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 15px;
}
.step-card {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-yellow);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 12px 12px 0;
    transition: var(--transition);
}
.step-card:last-child {
    margin-bottom: 0;
}
.step-card:hover {
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.05);
}
.step-card h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.step-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; }

/* Ad Placements */
.ad-container {
    width: 100%;
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-header {
    margin: 20px auto 0;
}
.ad-above-content {
    margin-bottom: 30px;
}
.ad-below-content {
    margin-top: 30px;
    margin-bottom: 30px;
}
.post-card.ad-card.in-feed-ad {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}
.post-card.ad-card.in-feed-ad:hover {
    transform: none;
    box-shadow: none;
}

/* Sticky Footer Ad */
.ad-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.ad-sticky-inner {
    margin: 0 auto;
    min-height: auto;
}
.sticky-footer-ad-close {
    position: absolute;
    top: -15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.sticky-footer-ad-close:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .single-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .search-form { flex-direction: column; background: transparent; border: none; }
    .search-input { background: var(--card-bg); border: 1px solid var(--border-color); margin-bottom: 10px; }
    
    /* Mobile Menu */
    .mobile-menu-toggle { display: block; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; margin-top: 15px; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 10px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 15px; }
    /* Single Post Fixes */
    .single-title { font-size: 1.8rem; }
    .single-layout { padding: 20px 0; }
    .action-icon { width: 35px; height: 35px; }
    .action-icon svg { width: 16px; height: 16px; }
    .prompt-wrapper { padding: 15px; }
}
@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .cta-section { flex-direction: column; }
    .single-title { font-size: 1.5rem; }
    .post-meta { flex-direction: column; gap: 5px; }
}

/* ==========================================
   CATEGORY SEO LANDING PAGE
   ========================================== */
.category-landing-page section {
    margin-bottom: 50px;
}
.category-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--card-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.category-hero .breadcrumbs {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.category-featured-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-yellow);
    box-shadow: var(--shadow-glow);
}
.category-hero .hero-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}
.category-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.category-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.category-search-form .search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}
.category-search-form .search-submit {
    background: var(--accent-yellow);
    color: #111;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-search-form .search-submit:hover {
    filter: brightness(1.1);
}

.category-intro-content, .category-bottom-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}
.category-intro-content h2, .category-intro-content h3, 
.category-bottom-content h2, .category-bottom-content h3 {
    color: #fff;
    margin-bottom: 15px;
    margin-top: 25px;
}
.category-intro-content p, .category-bottom-content p {
    margin-bottom: 15px;
}

.category-faq-section {
    max-width: 800px;
    margin: 0 auto 50px;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--accent-yellow);
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.category-related .related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-related .related-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.category-related .related-tag:hover {
    background: var(--accent-yellow);
    color: #111;
    border-color: var(--accent-yellow);
}

.category-cta .cta-inner {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), transparent);
    border: 1px solid var(--accent-yellow);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}
.category-cta h2, .category-cta h3 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .category-hero .hero-title { font-size: 2rem; }
    .category-featured-thumb { width: 100px; height: 100px; }
    .category-cta .cta-inner { padding: 25px; }
}

/* AI Instagram Caption Generator */
.ai-caption-generator {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
}

.generator-header {
    text-align: center;
    margin-bottom: 30px;
}

.generator-header h2 {
    color: var(--accent-yellow);
    font-size: 2.2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    background: #222;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

.generate-btn {
    background: linear-gradient(135deg, #FFD700, #ffaa00);
    color: #111;
    font-weight: bold;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}





