/*
Theme Name: AIGP Universal
Theme URI: https://example.com/
Description: A modern, independent, dark-first WordPress theme for AI prompt discovery libraries, creative portfolios, and blogs.
Version: 1.0.2
Author: Emtiaz
License: GPL-2.0-or-later
Text Domain: aigp-universal
Requires at least: 6.0
Requires PHP: 8.0
*/

/**
 * AIGP Universal Theme — Unified Design System Stylesheet
 * 100% Dark-First Modern UI • Zero External Framework Dependencies
 * Compatible with all modern browsers & WordPress Core
 */

/* ==========================================================================
   1. COLOR PALETTE & DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root,
[data-theme="dark"],
html,
body {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.16);
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --trending: #ef4444;
    --video: #ec4899;
    --image: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Dark Mode Defaults */
    --bg: #090d16;
    --bg-secondary: #0f172a;
    --header-bg: rgba(17, 24, 39, 0.94);
    --header-border: #1f2937;
    --header-text: #f8fafc;
    --card-bg: #111827;
    --card-bg-hover: #172033;
    --card-border: #1f2937;
    --surface: #111827;
    --surface-alt: #1e293b;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #1f2937;
    --border-light: rgba(148, 163, 184, 0.15);
    --input-bg: #1e293b;
    --input-border: #334155;
    --input-text: #f8fafc;
    --box-bg: #0f172a;
    --box-border: #1e293b;
    --button-text: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.22);
    --ad-bg: rgba(15, 23, 42, 0.5);
    --ad-border: rgba(148, 163, 184, 0.25);
    --ad-text: #94a3b8;
    --footer-bg: #070b12;
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
    --footer-border: #1f2937;
    --hero-bg: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%), #090d16;
    --pill-bg: #111827;
    --pill-text: #f8fafc;
    --pill-border: #1f2937;

    /* AIGP Theme Aliases */
    --aigp-primary: var(--primary);
    --aigp-primary-hover: var(--primary-hover);
    --aigp-primary-light: var(--primary-light);
    --aigp-secondary: var(--secondary);
    --aigp-accent: var(--accent);
    --aigp-trending: var(--trending);
    --aigp-video: var(--video);
    --aigp-image: var(--image);
    --aigp-success: var(--success);
    --aigp-warning: var(--warning);
    --aigp-danger: var(--danger);

    --aigp-bg: var(--bg);
    --aigp-bg-secondary: var(--bg-secondary);
    --aigp-bg-card: var(--card-bg);
    --aigp-bg-card-hover: var(--card-bg-hover);
    --aigp-surface: var(--surface);
    --aigp-surface-card: var(--card-bg);
    --aigp-surface-alt: var(--surface-alt);
    --aigp-text: var(--text);
    --aigp-text-secondary: var(--text-secondary);
    --aigp-text-muted: var(--text-muted);
    --aigp-border: var(--border);
    --aigp-border-light: var(--border-light);
    --aigp-border-focus: var(--primary);
    --aigp-header-bg: var(--header-bg);
    --aigp-header-border: var(--header-border);
    --aigp-header-text: var(--header-text);
    --aigp-footer-bg: var(--footer-bg);
    --aigp-footer-text: var(--footer-text);
    --aigp-footer-heading: var(--footer-heading);
    --aigp-footer-border: var(--footer-border);
    --aigp-input-bg: var(--input-bg);
    --aigp-input-border: var(--input-border);
    --aigp-input-text: var(--input-text);
    --aigp-button-text: var(--button-text);
    --aigp-box-bg: var(--box-bg);
    --aigp-box-border: var(--box-border);
    --aigp-terminal-bg: var(--box-bg);
    --aigp-terminal-text: var(--text);
    --aigp-shadow: var(--shadow);
    --aigp-shadow-hover: var(--shadow-hover);
    --aigp-shadow-card: var(--shadow);
    --aigp-shadow-card-hover: var(--shadow-hover);
    --aigp-ad-bg: var(--ad-bg);
    --aigp-ad-border: var(--ad-border);
    --aigp-ad-text: var(--ad-text);
    --aigp-hero-bg: var(--hero-bg);
    --aigp-pill-bg: var(--pill-bg);
    --aigp-pill-text: var(--pill-text);
    --aigp-pill-border: var(--pill-border);

    /* Sizing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --aigp-radius-sm: var(--radius-sm);
    --aigp-radius-md: var(--radius-md);
    --aigp-radius-lg: var(--radius-lg);
    --aigp-radius-full: var(--radius-full);
}

/* ==========================================================================
   2. UNIVERSAL RESET & SCOPED BASE NORMALIZATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Controls Reset — Eliminates ALL Ugly Browser Defaults */
input::placeholder,
textarea::placeholder,
.search-input::placeholder,
.aigp-search-input::placeholder,
.header-search-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

select option {
    background-color: var(--card-bg);
    color: var(--text);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom Styled Select with SVG Chevron Arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

select option {
    background-color: var(--card-bg);
    color: var(--text);
    padding: 6px;
}

/* Inputs Reset */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Centered Standard Container */
.container,
.aigp-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Accessibility Skip Link */
.aigp-skip-link,
.screen-reader-text {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--primary);
    color: #ffffff;
    padding: 10px 18px;
    z-index: 99999;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.aigp-skip-link:focus,
.screen-reader-text:focus {
    top: 10px;
    left: 10px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Seamless Single-Row Bar)
   ========================================================================== */
.aigp-site-header,
.aigp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.25s ease, border-color 0.25s ease;
    width: 100%;
}

.aigp-header-inner,
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Brand / Logo */
.aigp-branding,
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.header-logo,
.footer-logo,
.custom-logo,
.aigp-logo-img {
    display: inline-block;
    height: 34px;
    width: auto;
    max-width: 220px;
    vertical-align: middle;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.aigp-brand-logo-link,
.footer-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-brand:hover .header-logo,
.aigp-branding:hover .custom-logo,
.aigp-brand-logo-link:hover,
.footer-brand-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Logo Theme Switchers */
.logo-light-theme,
.aigp-logo-light {
    display: none !important;
}

.logo-dark-theme,
.aigp-logo-dark {
    display: inline-block !important;
}

@media (max-width: 640px) {
    .aigp-logo-img,
    .custom-logo {
        height: 28px;
        max-width: 180px;
    }
}

.brand-name,
.aigp-site-title {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Desktop Navigation */
.aigp-primary-nav,
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.aigp-menu,
.header-nav ul,
.nav-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.aigp-menu li,
.header-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.aigp-menu a,
.header-nav .nav-link,
.nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

.aigp-menu a:hover,
.header-nav .nav-link:hover,
.nav-link:hover,
.nav-link.active,
.aigp-menu .current-menu-item > a {
    color: var(--primary) !important;
}

/* Header Actions (Search, Theme Toggle, Mobile Toggle) */
.aigp-header-actions,
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-wrap,
.aigp-header-search-wrap {
    position: relative;
}

.header-search-input,
.aigp-header-search-input {
    width: 150px;
    padding: 7px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: width 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search-input:focus,
.aigp-header-search-input:focus {
    width: 190px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.theme-toggle-btn,
.aigp-theme-toggle {
    display: none !important;
}

.theme-toggle-btn:hover,
.aigp-theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

.menu-toggle-btn,
.aigp-mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Hide desktop nav cleanly below 1120px to prevent awkward multiline wrapping */
@media (max-width: 1120px) {
    .aigp-primary-nav,
    .header-nav,
    .header-search-wrap,
    .aigp-header-search-wrap {
        display: none !important;
    }
    .menu-toggle-btn,
    .aigp-mobile-menu-toggle {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   4. MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-menu-drawer,
.aigp-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--card-border);
    z-index: 2000;
    padding: 24px 20px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-drawer.is-open,
.aigp-mobile-drawer.is-open {
    right: 0;
}

.mobile-menu-header,
.aigp-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
}

.close-btn,
.aigp-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.close-btn:hover,
.aigp-drawer-close:hover {
    color: var(--text);
}

.mobile-nav-list,
.aigp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    padding: 10px 8px;
    border-bottom: 1px solid var(--card-border);
    display: block;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 14px;
}

.menu-backdrop,
.aigp-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-backdrop.is-open,
.menu-backdrop.is-active,
.aigp-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.aigp-hero-section {
    padding: 64px 0 44px;
    text-align: center;
    background: var(--hero-bg);
    transition: background 0.25s ease;
}

.hero-inner,
.aigp-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.hero-title,
.aigp-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text);
}

.hero-desc,
.aigp-hero-desc {
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Large Hero Search Box */
.hero-search-wrap,
.aigp-hero-search-wrap {
    max-width: 660px;
    margin: 0 auto 28px;
    width: 100%;
}

.search-input-group,
.aigp-search-input-group {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.search-input-group:focus-within,
.aigp-search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
    font-size: 16px;
    margin-right: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input,
.aigp-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    min-width: 0;
}

.search-btn,
.aigp-search-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.search-btn:hover,
.aigp-search-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

/* CTA Action Buttons */
.hero-actions,
.aigp-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn,
.aigp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary,
.aigp-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover,
.aigp-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.btn-secondary,
.aigp-btn-secondary {
    background: var(--card-bg);
    color: var(--text) !important;
    border: 1px solid var(--card-border);
}

.btn-secondary:hover,
.aigp-btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary) !important;
}

.btn-outline,
.aigp-btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
}

.btn-outline:hover,
.aigp-btn-outline:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Category Chips (Pills) */
.hero-chips,
.aigp-hero-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chips-label,
.aigp-chips-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.chips-list,
.aigp-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.chip-btn,
.aigp-chip-btn,
.aigp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--pill-text) !important;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chip-btn:hover,
.aigp-chip-btn:hover,
.aigp-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   6. ADVERTISEMENT SLOTS (AdSense Google Policy Compliant)
   ========================================================================== */
.aigp-ad-container {
    width: 100%;
    margin: 28px auto 36px;
    text-align: center;
    clear: both;
}

.aigp-ad-inner {
    display: inline-block;
    max-width: 100%;
    background: var(--ad-bg);
    border: 1px dashed var(--ad-border);
    border-radius: var(--radius-md);
    padding: 10px 16px 14px;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.aigp-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 8px;
    user-select: none;
}

.aigp-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--border-light);
    border: 1px dashed var(--ad-border);
    border-radius: var(--radius-sm);
    color: var(--ad-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 60px;
}

/* ==========================================================================
   7. GLOBAL FILTER & SORT BAR
   ========================================================================== */
.aigp-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 0;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--card-border);
}

.filter-group-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.segmented-control {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 3px;
}

.type-filter-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.type-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.category-select,
.sort-select {
    padding: 8px 36px 8px 14px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ==========================================================================
   8. SECTIONS & SECTION HEADERS
   ========================================================================== */
.aigp-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 12px;
}

.section-title {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.section-more-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.section-more-link:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* ==========================================================================
   9. RESPONSIVE CARD GRID & PROMPT CARDS (4/3/2 Columns)
   ========================================================================== */
.aigp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1080px) {
    .aigp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .aigp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 440px) {
    .aigp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Prompt Card */
.aigp-card,
.aigp-prompt-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aigp-card:hover,
.aigp-prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.4);
}

.aigp-card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-alt);
}

.aigp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aigp-card:hover .aigp-card-img,
.aigp-prompt-card:hover .aigp-card-img {
    transform: scale(1.06);
}

.aigp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--box-bg);
}

/* Card Badges */
.aigp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
}

.aigp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.badge-trending,
.aigp-badge-trending {
    background: rgba(239, 68, 68, 0.92);
}

.badge-image,
.aigp-badge-image {
    background: rgba(59, 130, 246, 0.9);
}

.badge-video,
.aigp-badge-video {
    background: rgba(236, 72, 153, 0.9);
}

/* Video Card Play Overlay */
.aigp-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease;
    z-index: 1;
}

.aigp-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.aigp-card:hover .aigp-play-btn {
    transform: scale(1.15);
    background: #ffffff;
    color: var(--video);
}

/* Card Body */
.aigp-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aigp-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 8px;
}

.aigp-card-category,
.aigp-card-category a {
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
    text-decoration: none;
}

.aigp-card-category a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.aigp-card-copies {
    color: var(--text-muted);
}

.aigp-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aigp-card-title a {
    color: var(--text);
    text-decoration: none;
}

.aigp-card-title a:hover {
    color: var(--primary);
}

.aigp-card-prompt-snippet {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aigp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.aigp-view-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.aigp-view-text:hover {
    color: var(--primary);
}

.aigp-quick-copy,
.aigp-copy-btn,
.aigp-quick-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aigp-quick-copy:hover,
.aigp-copy-btn:hover,
.aigp-quick-copy-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.aigp-quick-copy.is-copied,
.aigp-copy-btn.copied,
.aigp-quick-copy-btn.copied {
    background: var(--success) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   10. POPULAR CATEGORIES GRID
   ========================================================================== */
.aigp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.aigp-category-card,
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.aigp-category-card:hover,
.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.cat-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.cat-name,
.category-card h3,
.cat-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}

.cat-count,
.category-card span,
.cat-info small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   11. AI TOOLS HUB & SHOWCASE GRID
   ========================================================================== */
.aigp-ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.aigp-ai-tool-card,
.ai-tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow);
}

.aigp-ai-tool-card:hover,
.ai-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.ai-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ai-tool-icon,
.aigp-tool-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.ai-tool-name,
.aigp-tool-info h4 {
    font-size: 16px;
    font-weight: 750;
    margin: 0;
    color: var(--text);
}

.ai-tool-desc,
.aigp-tool-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-tool-footer,
.aigp-tool-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
}

.ai-tool-footer span:last-child {
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   12. BLOG ARTICLES SECTION (Native WordPress Posts)
   ========================================================================== */
.aigp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .aigp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aigp-blog-grid {
        grid-template-columns: 1fr;
    }
}

.aigp-blog-card,
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.aigp-blog-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.blog-thumb-wrap,
.blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    background: var(--surface-alt);
}

.blog-thumb,
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body,
.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date,
.blog-card-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.blog-title,
.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-title a,
.blog-card-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-title a:hover,
.blog-card-title a:hover {
    color: var(--primary);
}

.blog-excerpt,
.blog-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
}

/* ==========================================================================
   13. FAQ ACCORDION
   ========================================================================== */
.aigp-faq-section {
    max-width: 860px;
    margin: 0 auto 50px;
}

.center-header {
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aigp-faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease;
}

.aigp-faq-item.is-open {
    border-color: var(--primary);
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
    transition: transform 0.2s ease;
}

.aigp-faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    display: none;
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.aigp-faq-item.is-open .faq-body {
    display: block;
}

/* ==========================================================================
   14. SINGLE PROMPT DETAIL VIEW
   ========================================================================== */
.aigp-detail-view,
.aigp-single-prompt-main {
    padding: 30px 0 70px;
}

.aigp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.aigp-breadcrumbs a {
    color: var(--primary);
    font-weight: 600;
}

.aigp-single-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text);
}

.aigp-prompt-box,
.detail-prompt-box {
    background: var(--box-bg);
    border: 2px solid var(--box-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.prompt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
}

.copy-prompt-btn,
.aigp-copy-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.copy-prompt-btn:hover,
.aigp-copy-prompt-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.copy-prompt-btn.is-copied,
.aigp-copy-prompt-btn.copied {
    background: var(--success) !important;
}

.aigp-prompt-code,
.prompt-text-display {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    padding: 20px;
    background: var(--box-bg);
    border: none;
}

.aigp-rich-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   15. CATEGORY ARCHIVE & DIRECTORY HERO
   ========================================================================== */
.cat-view-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px auto;
}

.cat-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cat-view-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.cat-view-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cat-pagination-wrap,
.aigp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
}

.cat-pagination-wrap .page-numbers,
.aigp-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cat-pagination-wrap .page-numbers.current,
.aigp-pagination .page-numbers.current,
.cat-pagination-wrap .page-numbers:hover,
.aigp-pagination .page-numbers:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.aigp-site-footer,
.aigp-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 50px 0 30px;
    margin-top: 60px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-grid,
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 36px;
}

@media (max-width: 900px) {
    .footer-grid,
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-col h4,
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--footer-text);
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}


.aigp-site-footer p {
    color: var(--footer-text);
}

.aigp-copyright {
    color: var(--footer-text);
}

.aigp-copyright strong {
    color: var(--footer-heading);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--footer-text);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   17. TOAST NOTIFICATION & BACK TO TOP
   ========================================================================== */
.aigp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--card-border);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aigp-toast.is-active,
.aigp-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.aigp-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.aigp-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.aigp-back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   18. MULTI-SCENE VIDEO PROMPT WORKFLOW & SCENE BADGES
   ========================================================================== */
.aigp-badge-scenes,
.badge-scenes {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}



.aigp-video-breakdown-wrap {
    margin-top: 28px;
    margin-bottom: 36px;
}

.aigp-breakdown-header {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.aigp-breakdown-title-box {
    flex: 1;
    min-width: 260px;
}

.aigp-breakdown-heading {
    margin: 10px 0 8px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aigp-scene-count-badge {
    font-size: 13px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2px 10px;
    border-radius: 9999px;
    line-height: 1.4;
}

.aigp-breakdown-desc {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.aigp-breakdown-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.aigp-scenes-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aigp-scene-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aigp-scene-card:hover {
    border-color: #6366f1;
    box-shadow: var(--shadow-hover);
}

.aigp-scene-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.aigp-scene-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aigp-scene-idx {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1.3;
}

.aigp-scene-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.aigp-scene-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aigp-scene-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.aigp-pill-dur {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}



.aigp-pill-tool {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}



.aigp-scene-intro {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.aigp-scene-ref-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--card-border);
}



.aigp-scene-ref-img-holder {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.aigp-scene-ref-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aigp-scene-ref-caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.aigp-scene-prompts-area {
    display: flex;
    flex-direction: column;
}

.aigp-prompt-step {
    background: var(--surface-alt);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 12px;
}

.aigp-prompt-step.aigp-step-image {
    border-left: 3px solid #38bdf8;
}

.aigp-prompt-step.aigp-step-video {
    border-left: 3px solid #f43f5e;
}

.aigp-prompt-step.aigp-step-video-only {
    border-left: 3px solid #6366f1;
}

.aigp-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.aigp-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text);
}

.aigp-step-label small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.aigp-step-badge {
    font-size: 10px;
    font-weight: 800;
    background: #38bdf8;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.aigp-step-video .aigp-step-badge {
    background: #f43f5e;
    color: #ffffff;
}

.aigp-workflow-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 12px 14px;
    color: #818cf8;
    font-size: 12px;
    font-weight: 600;
}

.aigp-arrow-down {
    font-size: 16px;
    font-weight: 800;
}

.aigp-prompt-step pre.aigp-prompt-code {
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono, Menlo, Consolas, Monaco, monospace);
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0;
    border: none;
}

.aigp-scene-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
}

.aigp-scene-neg-box {
    font-size: 12px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    word-break: break-word;
}

.aigp-scene-neg-box code {
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.aigp-neg-tag {
    font-weight: 700;
    margin-right: 6px;
}

.aigp-scene-camera-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aigp-cam-pill {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}



/* ==========================================================================
   Unified Multi-Prompt & Optional Image Prompt Styles
   ========================================================================== */
.aigp-prompts-display-wrap {
    margin-bottom: 24px;
}

.aigp-image-prompt-box {
    border-left: 4px solid #3b82f6 !important;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    border-left-width: 4px !important;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.aigp-prompt-block-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aigp-prompt-num-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    display: inline-block;
}

.aigp-multiple-prompts-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.aigp-prompt-blocks-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

