/*
Theme Name: Prompt Jinny
Theme URI: https://promptjinny.com
Author: Prompt Jinny
Author URI: https://promptjinny.com
Description: A lightweight, high-performance, conversion-optimized theme for digital AI prompt pack stores. Built for speed (90+ PageSpeed), WooCommerce ready, and compatible with popular page builders.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prompt-jinny
Tags: e-commerce, one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready

Prompt Jinny - Your Wish. Our Prompt.
Industry-specific AI prompt packs for business owners.
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* Brand Colors */
    --pj-deep-navy: #0D1117;
    --pj-jinny-purple: #8B5CF6;
    --pj-jinny-purple-hover: #7C3AED;
    --pj-light-lavender: #C4B5FD;
    --pj-lamp-gold: #FFB800;
    --pj-lamp-gold-hover: #E6A700;
    --pj-ghost-purple: #F8F6FF;
    --pj-midnight: #1A1A2E;
    --pj-cool-gray: #6B7280;
    --pj-light-gray: #9CA3AF;
    --pj-text-light: #D1D5DB;
    --pj-white: #FFFFFF;
    --pj-border-light: #E5E7EB;
    --pj-border-dark: rgba(255, 255, 255, 0.1);

    /* Typography */
    --pj-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --pj-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pj-font-code: 'Source Code Pro', monospace;

    /* Spacing */
    --pj-section-padding: 80px;
    --pj-container-max: 1280px;
    --pj-container-padding: 24px;

    /* Transitions */
    --pj-transition: all 0.3s ease;
    --pj-transition-fast: all 0.2s ease;

    /* Shadows */
    --pj-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --pj-shadow-md: 0 4px 24px rgba(139, 92, 246, 0.08);
    --pj-shadow-lg: 0 8px 40px rgba(139, 92, 246, 0.15);
    --pj-shadow-gold: 0 4px 20px rgba(255, 184, 0, 0.3);

    /* Border Radius */
    --pj-radius-sm: 6px;
    --pj-radius-md: 8px;
    --pj-radius-lg: 12px;
    --pj-radius-xl: 16px;
    --pj-radius-full: 100px;
}

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--pj-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pj-midnight);
    background-color: var(--pj-white);
    overflow-x: hidden;
}

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

a {
    color: var(--pj-jinny-purple);
    text-decoration: none;
    transition: var(--pj-transition-fast);
}

a:hover {
    color: var(--pj-jinny-purple-hover);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--pj-jinny-purple);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--pj-white);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pj-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pj-midnight);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 600; }

p {
    margin-bottom: 1em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pj-jinny-purple), var(--pj-light-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.pj-container {
    max-width: var(--pj-container-max);
    margin: 0 auto;
    padding: 0 var(--pj-container-padding);
}

.pj-section {
    padding: var(--pj-section-padding) 0;
}

.pj-section-dark {
    background: var(--pj-deep-navy);
    color: var(--pj-white);
}

.pj-section-light {
    background: var(--pj-ghost-purple);
}

.pj-section-white {
    background: var(--pj-white);
}

/* Grid Utilities */
.pj-grid {
    display: grid;
    gap: 24px;
}

.pj-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pj-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .pj-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pj-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pj-grid-4,
    .pj-grid-3,
    .pj-grid-2 { grid-template-columns: 1fr; }
    
    :root {
        --pj-section-padding: 60px;
        --pj-container-padding: 20px;
    }
}

/* Flex Utilities */
.pj-flex {
    display: flex;
}

.pj-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pj-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.pj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pj-font-heading);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--pj-radius-md);
    transition: var(--pj-transition-fast);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.pj-btn-primary {
    background: var(--pj-lamp-gold);
    color: var(--pj-deep-navy);
    box-shadow: var(--pj-shadow-gold);
}

.pj-btn-primary:hover {
    background: var(--pj-lamp-gold-hover);
    transform: translateY(-2px);
    color: var(--pj-deep-navy);
}

.pj-btn-secondary {
    background: var(--pj-jinny-purple);
    color: var(--pj-white);
}

.pj-btn-secondary:hover {
    background: var(--pj-jinny-purple-hover);
    transform: translateY(-2px);
    color: var(--pj-white);
}

.pj-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--pj-white);
}

.pj-btn-outline:hover {
    border-color: var(--pj-jinny-purple);
    color: var(--pj-light-lavender);
}

.pj-btn-outline-dark {
    background: transparent;
    border: 2px solid var(--pj-border-light);
    color: var(--pj-cool-gray);
}

.pj-btn-outline-dark:hover {
    border-color: var(--pj-jinny-purple);
    color: var(--pj-jinny-purple);
}

.pj-btn-sm {
    font-size: 14px;
    padding: 10px 20px;
}

.pj-btn-lg {
    font-size: 18px;
    padding: 18px 36px;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.pj-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 32px;
    box-shadow: var(--pj-shadow-md);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: var(--pj-transition);
}

.pj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pj-shadow-lg);
}

.pj-card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-card-dark:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.pj-badge {
    display: inline-block;
    font-family: var(--pj-font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: var(--pj-radius-full);
}

.pj-badge-purple {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--pj-jinny-purple);
    color: var(--pj-light-lavender);
}

.pj-badge-gold {
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid var(--pj-lamp-gold);
    color: var(--pj-lamp-gold);
}

.pj-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.pj-badge-gray {
    background: rgba(107, 114, 128, 0.2);
    color: var(--pj-light-gray);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.pj-input,
.pj-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--pj-border-light);
    border-radius: var(--pj-radius-md);
    background: var(--pj-white);
    color: var(--pj-midnight);
    transition: var(--pj-transition-fast);
}

.pj-input:focus,
.pj-select:focus {
    outline: none;
    border-color: var(--pj-jinny-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.pj-input-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--pj-white);
}

.pj-input-dark::placeholder {
    color: var(--pj-cool-gray);
}

.pj-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--pj-midnight);
}

/* ==========================================================================
   DOT GRID PATTERN
   ========================================================================== */

.pj-dot-grid {
    background-image: radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pj-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pj-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pj-sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.pj-animate-fade-in-up {
    animation: pj-fade-in-up 0.6s ease-out forwards;
}

.pj-animate-fade-in {
    animation: pj-fade-in 0.6s ease-out forwards;
}

/* Stagger Delays */
.pj-stagger-1 { animation-delay: 0.1s; }
.pj-stagger-2 { animation-delay: 0.2s; }
.pj-stagger-3 { animation-delay: 0.3s; }
.pj-stagger-4 { animation-delay: 0.4s; }
.pj-stagger-5 { animation-delay: 0.5s; }
.pj-stagger-6 { animation-delay: 0.6s; }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pj-deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--pj-jinny-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pj-light-lavender);
}

/* ==========================================================================
   PAGE BUILDER COMPATIBILITY
   ========================================================================== */

/* Full Width Templates */
.page-template-template-fullwidth .site-content,
.page-template-template-canvas .site-content {
    max-width: 100%;
    padding: 0;
}

/* Elementor Compatibility */
.elementor-page .site-header {
    position: relative;
}

.elementor-page.elementor-page-builder-active .site-content {
    padding: 0;
}

/* Gutenberg Compatibility */
.wp-block-group.alignfull,
.wp-block-cover.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* ==========================================================================
   WOOCOMMERCE BASE STYLES
   ========================================================================== */

.woocommerce-page .site-content {
    padding-top: 40px;
    padding-bottom: 80px;
}

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce .products {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.pj-text-center { text-align: center; }
.pj-text-left { text-align: left; }
.pj-text-right { text-align: right; }

.pj-text-white { color: var(--pj-white); }
.pj-text-purple { color: var(--pj-jinny-purple); }
.pj-text-gold { color: var(--pj-lamp-gold); }
.pj-text-gray { color: var(--pj-cool-gray); }

.pj-bg-dark { background: var(--pj-deep-navy); }
.pj-bg-light { background: var(--pj-ghost-purple); }
.pj-bg-white { background: var(--pj-white); }

.pj-mb-0 { margin-bottom: 0; }
.pj-mb-1 { margin-bottom: 8px; }
.pj-mb-2 { margin-bottom: 16px; }
.pj-mb-3 { margin-bottom: 24px; }
.pj-mb-4 { margin-bottom: 32px; }
.pj-mb-5 { margin-bottom: 48px; }

.pj-hidden { display: none; }

@media (max-width: 768px) {
    .pj-hidden-mobile { display: none; }
}

@media (min-width: 769px) {
    .pj-hidden-desktop { display: none; }
}
