/*
Theme Name: GP SnapTik Child
Template: generatepress
Version: 1.0
*/


/* =========================================================
   1. GENERATEPRESS DESIGN TOKENS
========================================================= */

:root {
    /* GeneratePress base mapping */
    --bg: var(--base-0, #ffffff);
    --bg-alt: var(--base-2a, #ffffff);
    --text: var(--contrast, #111);
    --muted: var(--contrast-3a, #6b7280);
    --primary: var(--accent-a, #298524);
    --primary-hover: #155bd6;
    --border: var(--base-3, #e5e7eb);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 0 0 rgba(0, 0, 0, 0.06);
}


/* =========================================================
   2. GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--gp-bg);
    color: var(--gp-text);
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   3. CONTAINER
========================================================= */

.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   4. HERO SECTION
========================================================= */

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--gp-text-muted);
    margin: 0;
}


/* =========================================================
   5. TOOL BOX (PLUGIN AREA)
========================================================= */

.tool-box {
    background: var(--gp-primary);
    padding: 25px;
    border-radius: 14px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   6. HERO FORM WRAPPER
========================================================= */


/* FORM WRAPPER */

.hero-form {
    max-width: 820px;
    margin: 50px auto;
}


/* MAIN INPUT CARD */

.hero-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
    position: relative;
}

.hero-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.12);
}


/* LEFT INPUT AREA */

.hero-input-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.hero-input-left input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--text);
}


/* ICON */

.icon-link {
    opacity: 0.7;
}


/* PASTE BUTTON */

.paste .btn-paste {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    transition: 0.2s;
}

.paste .btn-paste:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* SUBMIT BUTTON */

.hero-input-right button {
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.hero-input-right button:hover {
    background: var(--primary-hover);
}


/* ALERT */

.alert {
    display: none;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    background: #fff3cd;
    color: #664d03;
}

.alert.active {
    display: block;
}


/* =========================================================
   PROGRESS BOX (MINIMAL CENTER STYLE)
========================================================= */

.progress-box {
    display: none;
    margin-top: 15px;
    padding: 10px 0;
    text-align: center;
}

.progress-box.active {
    display: block;
}


/* INLINE TEXT (NOT FULL ROW FEEL) */

.progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    width: 100%;
}


/* small spinner */


/* PROGRESS BAR WRAPPER */

.progress {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
}


/* PROGRESS FILL */

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #22c55e);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.loading-text {
    white-space: nowrap;
}


/* =========================================================
   12. ALERT BOX
========================================================= */

.alert {
    display: none;
    background: var(--gp-warning);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.alert.active {
    display: block;
}


/* =========================================================
   14. DARK MODE
========================================================= */

body.dark-mode {
    --gp-bg: #0f172a;
    --gp-text: #e5e7eb;
    --gp-bg-alt: #1e293b;
    --gp-border: #334155;
}

body.dark-mode {
    background: var(--gp-bg);
    color: var(--gp-text);
}

body.dark-mode .hero-input-left {
    background: #111827;
}

body.dark-mode .tool-box {
    background: #1e3a8a;
}


/* =========================================================
   15. RESPONSIVE DESIGN
========================================================= */

@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
    .hero-input {
        flex-direction: column;
        gap: 12px;
    }
    .hero-input-left {
        width: 100%;
    }
    .hero-input-right button {
        width: 100%;
    }
    .tool-box {
        padding: 18px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .progress-box {
        padding: 15px;
        margin-top: 14px;
    }
    .progress {
        height: 10px;
    }
    .progress-text {
        font-size: 13px;
        text-align: center;
    }
}


/* PAGE WRAPPER */


/* =========================================================
   DOWNLOAD PAGE (FIXED LAYOUT)
========================================================= */

.hero-download {
    background: var(--bg-alt);
    padding: 50px 15px;
}


/* CARD STRUCTURE → COLUMN (IMPORTANT FIX) */


/* CARD */

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}


/* TOP ROW */

.hero-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


/* LEFT */

.hero-left {
    display: flex;
    gap: 15px;
    flex: 1;
}


/* IMAGE */

.hero-thumb {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}


/* META */

.hero-meta {
    flex: 1;
}


/* TITLE */

.hero-title {
    font-size: 16px;
    margin: 0 0 5px;
}


/* AUTHOR */

.hero-author {
    font-size: 13px;
    color: var(--muted);
}


/* STATS */

.hero-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    margin-top: 6px;
    color: var(--muted);
}


/* RIGHT SIDE BUTTONS */

.hero-right {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* BUTTON BASE */

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}


/* ICON */

.hero-btn .icon {
    font-size: 16px;
}


/* PRIMARY */

.hero-btn.primary {
    background: #2b6cb0;
    color: #fff;
}


/* SECONDARY */

.hero-btn.secondary {
    background: #10b981;
    color: #fff;
}


/* HOVER */

.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}


/* BOTTOM ROW */

.hero-bottom {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}


/* DOWNLOAD ANOTHER BUTTON (FIXED STYLE) */

.hero-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
}

.hero-back-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* MOBILE */

@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
    }
    .hero-right {
        width: 100%;
    }
    .hero-thumb {
        width: 100px;
        height: 100px;
    }
}