/*
Theme Name: Premium Prompt Hub
Theme URI: https://freemodapp.in
Author: Antigravity AI
Description: A premium, dark-mode WordPress theme designed for displaying and selling AI prompts in a clean 3-column centered grid. Supports vertical layouts on desktop and horizontal list rows on mobile.
Version: 2.2.0
Text Domain: premium-prompt-hub
*/

/* ==========================================================================
   GLOBAL RESET & STYLING VARIABLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0d1117;
    --card-bg: #181c27;
    --text-color: #ffffff;
    --text-muted: #8b949e;
    --primary-gradient: linear-gradient(135deg, #7C5CFF, #29B6FF);
    --success-color: #10b981;
    --border-color: rgba(255, 255, 255, 0.05);
    --transition-speed: 0.35s;
    --max-width: 1560px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

/* Prevent mobile tap highlight */
a, button, div, span, img, .unlock-btn, .prompt-card, .site-logo a, .main-navigation ul li a {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

/* ==========================================================================
   STICKY FLOATING 3D HEADER
   ========================================================================== */
.site-header {
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease !important;
}

.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 46px !important;
    }
}

.site-header.header-hidden {
    transform: translateY(-120%) !important;
    opacity: 0;
    pointer-events: none;
}

.header-container {
    max-width: 1200px !important;
    margin: 15px auto 0 auto !important;
    padding: 12px 30px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(24, 28, 39, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 100px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-navigation ul li a {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
    color: #ffffff !important;
    background: rgba(41, 182, 255, 0.1) !important;
    border-color: #29B6FF !important;
    box-shadow: 0 0 15px rgba(41, 182, 255, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   GRID LAYOUT & CARDS (DESKTOP)
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px 60px 20px !important;
}

.prompt-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    justify-content: center;
    gap: 24px !important;
    margin-bottom: 40px;
    margin-top: 15px !important;
}

.prompt-card {
    position: relative;
    border-radius: 24px;
    padding: 16px !important; 
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    
    /* Clean gradient border style */
    border: 1.5px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.prompt-card::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    background: var(--primary-gradient);
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-speed);
}

.prompt-card:hover {
    transform: translateY(-8px);
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, #7C5CFF, #29B6FF);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.prompt-card:hover::after {
    opacity: 0.3;
}

.prompt-card:hover .unlock-btn {
    background: linear-gradient(135deg, #29B6FF, #7C5CFF);
    box-shadow: 0 6px 20px rgba(41, 182, 255, 0.4), 
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
    flex-grow: 1;
}

/* 
   NATURAL ASPECT-RATIO THUMBNAIL (NO CROP):
   - Added background-color #0d1117 and padding: 8px to frame the image.
   - This protects the image corners from being clipped by outer rounded corners,
     ensuring that text like "D" in "DRONE" and "T" in "PROMPT" are 100% visible.
*/
.card-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    background: #0d1117 !important; /* Frame background */
    padding: 8px !important; /* Protects top-left and top-right image corners from rounded clipping */
    position: relative;
    border-radius: 16px !important; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px !important; 
}

.card-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain !important;
    border-radius: 10px !important; /* Slightly rounded corners for nested image */
    transition: none !important;
    transform: none !important;
}

/* Content centered on desktop */
.card-content {
    padding: 0 !important; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    background: transparent !important;
}

.card-title {
    font-size: 19px; 
    font-weight: 700;
    line-height: 1.35;
    margin: 0 auto 14px auto !important;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto; 
    text-transform: none;
    text-align: center !important;
    width: 100%;
    transition: color var(--transition-speed);
}

.prompt-card:hover .card-title {
    color: #29B6FF !important;
}

/* Tactile 3D button */
.unlock-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: var(--primary-gradient);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3), 
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    text-align: center;
}

.unlock-btn:hover {
    box-shadow: 0 6px 20px rgba(41, 182, 255, 0.4), 
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.unlock-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(124, 92, 255, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1d2230;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.25);
}

/* ==========================================================================
   PREMIUM ARTICLE / SINGLE POST PAGE LAYOUT
   ========================================================================== */
.single-post-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.single-post-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 45px;
    width: 100%;
}

.single-post-header h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 auto 20px auto !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-align: center !important;
    display: block !important;
    width: 100%;
}

.single-meta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

.single-featured-image {
    width: 100%;
    border-radius: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 45px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* PREMIUM CONTENT BOX */
.single-content {
    background-color: var(--card-bg);
    border-radius: 28px;
    padding: 50px 60px;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    
    border: 1.5px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.single-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    text-align: center !important;
    margin: 20px auto 30px auto !important;
    display: block !important;
    width: 100%;
}

.single-content p {
    margin-bottom: 24px;
    text-align: justify !important; 
    text-justify: inter-word;
}

/* Clean left-aligned headings inside post */
.single-content h2 {
    font-size: 26px;
    color: #ffffff;
    margin: 45px 0 20px 0;
    font-weight: 800;
    text-align: left !important;
    border-left: 4px solid #29B6FF !important; 
    padding-left: 14px !important;
}

.single-content h3 {
    font-size: 21px;
    color: #ffffff;
    margin: 35px 0 15px 0;
    font-weight: 700;
    text-align: left !important;
}

.single-content ul, .single-content ol {
    margin: 0 0 24px 24px !important;
    padding-left: 10px !important;
    text-align: left !important;
}

.single-content li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.single-content strong {
    color: #ffffff;
    font-weight: 700;
}

.single-content pre, .single-content code {
    background-color: #0d1117 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 22px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    color: #29B6FF;
    overflow-x: auto;
    margin: 24px 0;
    display: block;
    text-align: left !important;
    max-width: 100%;
}

.single-content blockquote {
    background: rgba(124, 92, 255, 0.05);
    border-left: 4px solid #7C5CFF !important;
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
    margin: 28px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-align: left !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0b0e14;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 60px;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1023px) and (min-width: 768px) {
    .prompt-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .header-container {
        margin: 10px 10px 0 10px !important;
        padding: 8px 20px !important;
        position: relative; 
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* FULL WIDTH MOBILE DROPDOWN */
    .main-navigation {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px); 
        left: 0;
        right: 0;
        width: 100% !important;
        background: var(--card-bg) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 20px !important;
        padding: 10px 0 !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
        z-index: 1000;
        overflow: hidden;
    }

    .main-navigation.active {
        display: block !important;
    }

    .main-navigation ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .main-navigation ul li {
        width: 100% !important;
        display: block !important;
    }

    .main-navigation ul li a {
        display: block !important;
        width: 100% !important;
        padding: 14px 24px !important;
        text-align: center !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #ffffff !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.2s ease;
    }

    .main-navigation ul li:last-child a {
        border-bottom: none !important;
    }

    .main-navigation ul li.current-menu-item a,
    .main-navigation ul li.current_page_item a,
    .main-navigation ul li a:hover {
        background: rgba(41, 182, 255, 0.08) !important;
        color: #29B6FF !important;
        border-left: none !important;
    }

    /* MOBILE POST CARD STYLES */
    .main-content {
        padding: 10px 16px 40px 16px !important;
    }

    .prompt-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0;
        margin-top: 15px !important;
    }

    .card-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    /* MOBILE CARD INSET THUMBNAIL */
    .prompt-card {
        border-radius: 24px !important;
        padding: 0px !important;
        background-color: var(--card-bg) !important;
        background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                          linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    }

    /* 
       INSET FRAME FOR MOBILE:
       - Uses padding: 6px !important to keep image safely away from corners
       - Prevents rounded corner clipping of text.
    */
    .card-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important; 
        flex-shrink: 0;
        margin-bottom: 0px !important;
        border-radius: 0 !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        border: none !important;
        overflow: hidden;
        background: #0d1117 !important;
        padding: 6px !important; /* Protects corners on mobile */
    }
    
    .card-thumb img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 18px !important; /* Inner image rounding */
        transition: none !important;
        transform: none !important;
    }

    .card-content {
        padding: 18px 16px !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .card-title {
        font-size: 18px !important;
        line-height: 1.4 !important;
        min-height: auto !important;
        margin: 0 auto 12px auto !important;
        -webkit-line-clamp: 2;
        text-align: center !important;
        width: 100%;
    }

    .unlock-btn {
        height: 44px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 15px rgba(124, 92, 255, 0.2) !important;
    }

    /* MOBILE SINGLE POST LAYOUT RESPONSIVENESS */
    .single-post-container {
        padding: 15px 12px 40px 12px !important;
        margin: 10px auto !important;
    }

    .single-post-header {
        margin-bottom: 25px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .single-post-header h1 {
        font-size: 25px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        margin: 0 auto 15px auto !important;
        display: block !important;
        width: 100% !important;
    }

    .single-featured-image {
        border-radius: 20px !important;
        margin-bottom: 25px !important;
    }

    .single-content {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    .single-content h1 {
        font-size: 24px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        margin: 15px auto 20px auto !important;
        display: block !important;
        width: 100% !important;
    }

    .single-content p {
        text-align: justify !important;
        text-justify: inter-word;
    }

    .single-content h2 {
        font-size: 20px !important;
        margin: 30px 0 15px 0 !important;
        border-left: 4px solid #29B6FF !important; 
        padding-left: 10px !important;
        text-align: left !important;
    }

    .single-content h3 {
        font-size: 18px !important;
        margin: 25px 0 12px 0 !important;
        text-align: left !important;
    }

    .single-content pre, .single-content code {
        padding: 14px 16px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        text-align: left !important;
    }
}

/* ==========================================================================
   PREMIUM PROMPT BOX SECTION (DYNAMIC STANDALONE BOX)
   ========================================================================== */
.premium-prompt-section.standalone-box {
    background-color: var(--card-bg);
    border-radius: 28px;
    padding: 50px 60px;
    margin-bottom: 45px; /* Spacing between standalone prompt box and featured image below */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
    border: 1.5px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), 
                      linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.prompt-box-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #29B6FF;
    background: rgba(41, 182, 255, 0.08);
    border: 1px solid rgba(41, 182, 255, 0.2);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

/* 
   JUSTIFIED PROMPT DISPLAY BOX:
   - Changes text-align from left/center to justify.
   - Restores equal straight margins on both left and right edges.
   - Completely removes selection highlight zig-zag blocks.
*/
.prompt-display-box {
    width: 100%;
    background-color: #0d1117;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: justify !important; /* Forces justified text spacing inside box */
}

.prompt-display-box p {
    color: #29B6FF !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    margin: 0 !important;
    user-select: all;
    word-break: break-word;
    text-align: justify !important; /* Left and right margins perfectly straight and equal */
    text-justify: inter-word;
}

/* Collapsible Prompt Text styles */
.prompt-text-container {
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    max-height: none;
}

.prompt-text-container.collapsed {
    max-height: 110px; /* Approximately 4 lines of 16px text with 1.7 line height */
}

/* Fade effect overlay at bottom of collapsed text */
.prompt-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, #0d1117 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    display: none;
}

.prompt-text-container.collapsed .prompt-fade-overlay {
    opacity: 1;
    display: block;
}

/* Premium View Full Prompt Button */
.view-full-prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(41, 182, 255, 0.12));
    border: 1px solid rgba(124, 92, 255, 0.25);
    color: #29B6FF;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 12px auto 0 auto;
    outline: none;
}

.view-full-prompt-btn:hover {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(41, 182, 255, 0.2));
    border-color: #29B6FF;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(41, 182, 255, 0.25);
}

.view-full-prompt-btn:active {
    transform: translateY(0);
}

.view-full-prompt-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Copy button */
.copy-prompt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    outline: none !important;
}

.copy-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.copy-prompt-btn:active {
    transform: translateY(1px);
}

.copy-prompt-btn.copied {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Generation actions */
.generation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.action-gen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1.5px solid transparent;
}

/* Photo generation (purple) */
.action-gen-btn.photo-gen {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(124, 92, 255, 0.05));
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.15);
}

.action-gen-btn.photo-gen:hover {
    background: linear-gradient(135deg, #7C5CFF, #5c3cf7);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4), 
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Video generation (blue) */
.action-gen-btn.video-gen {
    background: linear-gradient(135deg, rgba(41, 182, 255, 0.1), rgba(41, 182, 255, 0.05));
    border-color: rgba(41, 182, 255, 0.4);
    box-shadow: 0 4px 15px rgba(41, 182, 255, 0.15);
}

.action-gen-btn.video-gen:hover {
    background: linear-gradient(135deg, #29B6FF, #0093e0);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(41, 182, 255, 0.4), 
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.action-gen-btn:active {
    transform: translateY(1px) !important;
}

@media (max-width: 767px) {
    .premium-prompt-section.standalone-box {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        margin-bottom: 30px !important;
    }
    .prompt-display-box {
        padding: 16px;
        border-radius: 14px !important;
    }
    .prompt-display-box p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: justify !important; /* Justified text on mobile too to avoid zig-zag selection highlights */
        text-justify: inter-word;
    }
    .copy-prompt-btn {
        padding: 10px 24px;
        font-size: 14px;
        margin-bottom: 20px;
        width: 100% !important; /* Full width copy button on mobile for easier tapping */
    }
    .generation-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .action-gen-btn {
        height: 48px;
        font-size: 14px;
    }
}

/* ==========================================================================
   FUTURISTIC AI LOADER STYLE SCHEMAS
   ========================================================================== */
.prompt-loader-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.loader-status-text {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
}

.spinner-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #29B6FF;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #29B6FF, 0 0 20px #29B6FF;
    animation: dot-pulse 1.2s infinite ease-in-out;
}

.skeleton-glow-bar {
    height: 16px;
    background: linear-gradient(90deg, #181c27 25%, #29B6FF 50%, #181c27 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.6s infinite ease-in-out;
    border-radius: 8px;
    margin-bottom: 12px;
    width: 100%;
    box-shadow: 0 0 15px rgba(41, 182, 255, 0.1);
}

.skeleton-glow-bar.short {
    width: 70%;
    margin-bottom: 0;
}

@keyframes loading-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 15px #29B6FF, 0 0 30px #29B6FF;
    }
}

.hidden-prompt {
    display: none;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   AI GENERATION MODALS STYLING
   ========================================================================== */

/* Fullscreen modal overlay */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: modal-backdrop-in 0.3s forwards;
}

@keyframes modal-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content Card */
.ai-modal-card {
    background: rgba(24, 28, 39, 0.88);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    opacity: 0;
    animation: modal-card-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes modal-card-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Accent Borders for Photo and Video Modals */
.photo-modal-card {
    border-color: rgba(124, 92, 255, 0.3);
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.15), 
                0 25px 50px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.video-modal-card {
    border-color: rgba(41, 182, 255, 0.3);
    box-shadow: 0 20px 40px rgba(41, 182, 255, 0.15), 
                0 25px 50px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Modal Header */
.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.ai-modal-header h3 svg {
    color: inherit;
    vertical-align: middle;
}

.photo-modal-card .ai-modal-header h3 {
    color: #7C5CFF;
}

.video-modal-card .ai-modal-header h3 {
    color: #29B6FF;
}

/* Close Button */
.ai-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.ai-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.05);
}

/* Input Fields & Dropzones */
.upload-section, .prompt-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

/* Custom Upload Dropzone styling */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

/* Photo dropzone hover/active */
.photo-modal-card .upload-dropzone:hover,
.photo-modal-card .upload-dropzone.drag-active {
    border-color: #7C5CFF;
    background: rgba(124, 92, 255, 0.04);
    box-shadow: inset 0 0 15px rgba(124, 92, 255, 0.05);
}

.photo-modal-card .upload-dropzone:hover .upload-icon,
.photo-modal-card .upload-dropzone.drag-active .upload-icon {
    color: #7C5CFF;
    transform: scale(1.1);
}

/* Video dropzone hover/active */
.video-modal-card .upload-dropzone:hover,
.video-modal-card .upload-dropzone.drag-active {
    border-color: #29B6FF;
    background: rgba(41, 182, 255, 0.04);
    box-shadow: inset 0 0 15px rgba(41, 182, 255, 0.05);
}

.video-modal-card .upload-dropzone:hover .upload-icon,
.video-modal-card .upload-dropzone.drag-active .upload-icon {
    color: #29B6FF;
    transform: scale(1.1);
}

/* Placeholders inside Dropzone */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.upload-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

/* Image preview within Dropzone */
.upload-preview-img {
    max-height: 120px;
    width: auto;
    max-width: 90%;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Remove preview button */
.remove-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10;
}

.remove-preview-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Textarea input styling */
.prompt-section textarea {
    width: 100%;
    height: 85px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: all 0.3s;
}

.photo-modal-card .prompt-section textarea:focus {
    border-color: #7C5CFF;
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.15), 
                inset 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.35);
}

.video-modal-card .prompt-section textarea:focus {
    border-color: #29B6FF;
    box-shadow: 0 0 12px rgba(41, 182, 255, 0.15), 
                inset 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.35);
}

/* Submit Modal Action Button */
.modal-submit-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-submit-btn {
    background: linear-gradient(135deg, #7C5CFF, #5c3cf7);
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.photo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.video-submit-btn {
    background: linear-gradient(135deg, #29B6FF, #0093e0);
    box-shadow: 0 4px 15px rgba(41, 182, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 182, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-submit-btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   PHASE 2: FUTURISTIC AI LOADING SCANNER
   ========================================================================== */
.ai-scanner-container {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scanner-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Horizontal scan line */
.scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10;
    pointer-events: none;
    animation: scan-animation 2s linear infinite;
}

.scanner-line.photo-scanner {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0) 0%, rgba(124, 92, 255, 1) 50%, rgba(124, 92, 255, 0) 100%);
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.8), 0 0 30px rgba(124, 92, 255, 0.4);
}

.scanner-line.video-scanner {
    background: linear-gradient(90deg, rgba(41, 182, 255, 0) 0%, rgba(41, 182, 255, 1) 50%, rgba(41, 182, 255, 0) 100%);
    box-shadow: 0 0 15px rgba(41, 182, 255, 0.8), 0 0 30px rgba(41, 182, 255, 0.4);
}

@keyframes scan-animation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanner-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 11;
    padding: 0 20px;
}

/* Loader dots jumping */
.scanner-loader-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.scanner-loader-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: dot-bounce-animation 1.4s infinite ease-in-out both;
}

.photo-modal-card .scanner-loader-dots .dot {
    background-color: #7C5CFF;
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}

.video-modal-card .scanner-loader-dots .dot {
    background-color: #29B6FF;
    box-shadow: 0 0 10px rgba(41, 182, 255, 0.5);
}

.scanner-loader-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.scanner-loader-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce-animation {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
    40% { transform: scale(1.1); opacity: 1; }
}

.scanner-status-text {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    min-height: 20px;
}

/* ==========================================================================
   PHASE 3: BLURRED PREVIEW RESULT CARD
   ========================================================================== */
.result-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
    background: #000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.result-blurred-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px);
    transform: scale(1.06);
    pointer-events: none;
    opacity: 0.85;
}

.result-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.lock-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
    animation: lock-float 2s ease-in-out infinite;
}

@keyframes lock-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.lock-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Video Player mockup specifics */
.video-player-mock .mock-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(41, 182, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    z-index: 6;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 20px rgba(41, 182, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-left: 3px; /* visual center alignment of play icon */
}

.video-player-mock .mock-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #29B6FF;
    box-shadow: 0 0 30px rgba(41, 182, 255, 0.8);
}

.video-player-mock .mock-video-bar {
    position: absolute;
    bottom: 12px;
    left: 15px;
    right: 15px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    z-index: 6;
    overflow: hidden;
}

.video-player-mock .mock-video-progress {
    width: 38%;
    height: 100%;
    background: #29B6FF;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(41, 182, 255, 0.7);
}

/* Result Download/Preview Action Buttons */
.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mock-btn {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1.5px solid transparent;
}

.mock-btn.preview-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mock-btn.preview-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mock-btn.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.mock-btn.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mock-btn:active {
    transform: translateY(1px) !important;
}

/* ==========================================================================
   PREMIUM NEON GLASS TOAST NOTIFICATION
   ========================================================================== */
.ai-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 28, 39, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), 
                0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 14px 28px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    z-index: 999999;
    pointer-events: none;
    transition: bottom 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.3s;
    opacity: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ai-toast.show {
    bottom: 45px;
    opacity: 1;
}

/* Responsive adjustment for Modals */
@media (max-width: 767px) {
    .ai-modal-card {
        padding: 24px 20px;
        border-radius: 20px;
        max-width: 100%;
    }
    .ai-modal-header {
        margin-bottom: 20px;
    }
    .ai-modal-header h3 {
        font-size: 18px;
    }
    .upload-dropzone {
        min-height: 120px;
        padding: 16px;
    }
    .prompt-section textarea {
        height: 75px;
    }
    .result-image-wrapper {
        height: 200px;
    }
    .result-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ai-toast.show {
        bottom: 25px;
        font-size: 12px;
        padding: 12px 20px;
    }
}
