/*
Theme Name: PromptOart
Theme URI: https://promptoart.com
Author: promptoart
Author URI: https://promptoart.com
Description: A clean, professional WordPress theme for PromptOart plugins marketplace.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promptoart
*/

/* ─── VARIABLES ─── */
:root {
    --purple: #7B6FE8;
    --purple-light: rgba(123,111,232,0.15);
    --purple-mid: rgba(123,111,232,0.3);
    --purple-bright: #A89EF5;
    --accent: #F5A623;
    --accent-light: rgba(245,166,35,0.15);
    --green: #4CAF82;
    --green-light: rgba(76,175,130,0.15);
    --text: #F0EEFF;
    --text-muted: #8B87B8;
    --border: rgba(123,111,232,0.18);
    --border-hover: rgba(123,111,232,0.4);
    --bg: #0D0C1A;
    --bg-secondary: #13112A;
    --bg-card: #17152E;
    --bg-card-hover: #1E1B3A;
    --radius: 8px;
    --radius-lg: 14px;
    --glow: 0 0 30px rgba(123,111,232,0.12);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: var(--purple-bright); }
img { max-width: 100%; height: auto; display: block; }

/* ─── NAV ─── */
.site-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 0.5px solid var(--border);
    background: rgba(13,12,26,0.95);
    position: sticky; top: 0; z-index: 100;
}
.site-logo { font-size: 18px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.site-logo img { width: 32px; height: 32px; border-radius: 8px; }
.site-logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn-donate {
    font-size: 13px; padding: 8px 20px;
    border-radius: var(--radius);
    border: 0.5px solid var(--purple);
    color: var(--purple-bright);
    background: var(--purple-light);
    cursor: pointer; transition: all 0.2s; font-weight: 600;
}
.btn-donate:hover { background: var(--purple); color: white; }

/* ─── HERO ─── */
.site-hero {
    padding: 90px 32px 72px;
    text-align: center;
    border-bottom: 0.5px solid var(--border);
    background: radial-gradient(ellipse at 50% 0%, rgba(123,111,232,0.12) 0%, transparent 70%);
}
.site-hero h1 {
    font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 16px;
    background: linear-gradient(135deg, #F0EEFF 0%, #A89EF5 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.site-hero p { font-size: 17px; color: var(--text-muted); max-width: 500px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    padding: 12px 32px; border-radius: var(--radius);
    background: var(--purple); color: white;
    font-size: 14px; border: none; cursor: pointer; font-weight: 600;
    transition: all 0.2s; box-shadow: 0 4px 20px rgba(123,111,232,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
    padding: 12px 32px; border-radius: var(--radius);
    background: transparent; color: var(--text-muted);
    font-size: 14px; border: 0.5px solid var(--border); cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-card); }

/* ─── SECTIONS ─── */
.section { padding: 60px 32px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--purple-bright); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 26px; font-weight: 700; margin-bottom: 36px; color: var(--text); }
.container { max-width: 1100px; margin: 0 auto; }

/* ─── PLUGIN CARDS ─── */
.plugins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.plugin-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.2s;
}
.plugin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow);
    background: var(--bg-card-hover);
}

.plugin-thumbnail {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #1A1835 0%, #0F0E20 100%);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 0.5px solid var(--border);
    position: relative; overflow: hidden;
}
.plugin-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-icon { font-size: 52px; opacity: 0.2; }
.plugin-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 11px; padding: 4px 12px;
    border-radius: 100px; font-weight: 700;
}
.badge-free { background: var(--green-light); color: var(--green); border: 0.5px solid rgba(76,175,130,0.3); }
.badge-soon { background: var(--accent-light); color: var(--accent); border: 0.5px solid rgba(245,166,35,0.3); }

.plugin-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.plugin-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.plugin-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.plugin-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.plugin-actions { display: flex; gap: 8px; }
.btn-download {
    flex: 1; padding: 10px; border-radius: var(--radius);
    background: var(--purple); color: white;
    font-size: 13px; border: none; cursor: pointer; font-weight: 600;
    text-align: center; transition: all 0.2s;
}
.btn-download:hover { opacity: 0.9; }
.btn-docs {
    padding: 10px 18px; border-radius: var(--radius);
    background: transparent; color: var(--text-muted);
    font-size: 13px; border: 0.5px solid var(--border); cursor: pointer;
    transition: all 0.2s;
}
.btn-docs:hover { border-color: var(--border-hover); color: var(--text); }

/* ─── DONATE BAR ─── */
.donate-bar {
    background: linear-gradient(135deg, rgba(123,111,232,0.1) 0%, rgba(245,166,35,0.07) 100%);
    border: 0.5px solid var(--purple-mid);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.donate-bar h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.donate-bar p { font-size: 14px; color: var(--text-muted); }
.btn-paypal {
    padding: 12px 32px; border-radius: var(--radius);
    background: var(--accent); color: #1a0e00;
    font-size: 14px; border: none; cursor: pointer; font-weight: 700;
    white-space: nowrap; transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(245,166,35,0.2);
}
.btn-paypal:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,166,35,0.3); }

/* ─── SINGLE PLUGIN ─── */
.plugin-single {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 40px; padding: 48px 32px;
    max-width: 1100px; margin: 0 auto;
}
.plugin-single-main h1 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.version-badge {
    display: inline-block; font-size: 12px; padding: 4px 12px;
    border-radius: 100px; background: var(--green-light);
    color: var(--green); font-weight: 700; margin-bottom: 20px;
    border: 0.5px solid rgba(76,175,130,0.3);
}
.plugin-screenshots { display: grid; gap: 12px; margin: 24px 0; }
.plugin-screenshots img { border-radius: var(--radius); border: 0.5px solid var(--border); }
.plugin-content { color: var(--text-muted); line-height: 1.8; }
.plugin-content h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.plugin-content h3 { font-size: 16px; font-weight: 700; color: var(--purple-bright); margin: 20px 0 8px; }
.plugin-content p { margin-bottom: 14px; }
.plugin-content ul, .plugin-content ol { padding-right: 20px; margin-bottom: 14px; }
.plugin-content li { margin-bottom: 6px; }
.plugin-content blockquote { border-right: 3px solid var(--purple); padding: 12px 16px; background: var(--purple-light); border-radius: var(--radius); margin: 16px 0; font-style: italic; }

.plugin-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--bg-card); border: 0.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.sidebar-meta { display: grid; gap: 10px; }
.sidebar-meta-row { display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); }
.sidebar-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-meta-row span:first-child { color: var(--text-muted); }

/* ─── FOOTER ─── */
.site-footer {
    padding: 28px 32px;
    border-top: 0.5px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    background: var(--bg-secondary);
}
.site-footer p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .site-nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .site-hero { padding: 56px 20px 44px; }
    .site-hero h1 { font-size: 30px; }
    .section { padding: 44px 20px; }
    .donate-bar { padding: 24px 20px; }
    .plugin-single { grid-template-columns: 1fr; }
    .site-footer { padding: 20px; flex-direction: column; text-align: center; }
}
