/*
 Theme Name: Kadence Child
 Theme URI: https://thegradients.com
 Description: Child theme for thegradients.com
 Author: The Gradients
 Template: kadence
 Version: 2.0.0
*/

/* ─── Reset Kadence ──────────────────────────────────────── */
.home .entry-header,
.home .page-hero-section,
.home .kadence-page-title-wrap,
.page-title { display: none !important; }

.entry-content { max-width: 100% !important; padding: 0 !important; }
#primary { width: 100% !important; max-width: 100% !important; padding: 0 !important; float: none !important; }
.content-container { max-width: 100% !important; padding: 0 !important; }

/* ─── Global ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;*/
    background: #FAFAFA;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

/* ─── App wrapper ─────────────────────────────────────────── */
#gradients-app {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;*/
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
}

/* ─── Hero ───────────────────────────────────────────────── */
.ga-hero {
    text-align: center;
    padding: 72px 16px 52px;
}

.ga-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 5px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 50px;
    background: #fff;
}

.ga-hero h1 {
    font-size: clamp(32px, 5.5vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    color: #0A0A0A !important;
    letter-spacing: -0.03em !important;
}

.ga-hero h1 span {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ga-hero p {
    font-size: 17px !important;
    color: #666 !important;
    margin: 0 0 36px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ─── Search ─────────────────────────────────────────────── */
.ga-search {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 28px;
    display: block;
    position: relative;
}

.ga-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #BBB;
    font-size: 15px;
    pointer-events: none;
}

.ga-search input {
    width: 100% !important;
    padding: 13px 20px 13px 44px !important;
    border-radius: 12px !important;
    border: 1.5px solid #E8E8E8 !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.ga-search input:focus {
    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}

.ga-search input::placeholder { color: #BBB; }

/* ─── Filter pills ───────────────────────────────────────── */
.ga-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}

.ga-pill {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.12s;
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.ga-pill:hover {
    border-color: #D0D0D0;
    color: #111;
    background: #FAFAFA;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.ga-pill.on {
    background: #0A0A0A !important;
    color: #fff !important;
    border-color: #0A0A0A !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ─── Section ────────────────────────────────────────────── */
.ga-sec { margin: 40px 0 0; }

.ga-sec-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.ga-sec-hd h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #111 !important;
    letter-spacing: -0.01em !important;
}

.ga-sec-hd span {
    font-size: 12px;
    color: #BBB;
    font-weight: 400;
}

/* ─── Grid ───────────────────────────────────────────────── */
.ga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.ga-grid.feat {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ─── Card ───────────────────────────────────────────────── */
.gc {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gc:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.gc-preview {
    display: block;
    height: 160px;
    width: 100%;
    transition: opacity 0.15s;
}

.gc-preview:hover { opacity: 0.92; }

.gc-body { padding: 14px 16px 16px; }

.gc-brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BBB;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.gc-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 12px !important;
    color: #111 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.gc-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.gc-title a:hover { color: #444 !important; }

.gc-swatches {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.gc-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    display: inline-block;
}

.gc-hex {
    font-size: 11px;
    color: #CCC;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-left: 2px;
}

.gc-copy {
    width: 100% !important;
    padding: 8px !important;
    border-radius: 8px !important;
    border: 1px solid #F0F0F0 !important;
    background: #FAFAFA !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.12s !important;
    color: #666 !important;
    letter-spacing: 0.01em !important;
}

.gc-copy:hover {
    background: #F0F0F0 !important;
    color: #111 !important;
    border-color: #E0E0E0 !important;
}

.gc-copy.ok {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    color: #166534 !important;
}

/* ─── Divider ────────────────────────────────────────────── */
.ga-divider {
    border: none;
    border-top: 1px solid #F0F0F0;
    margin: 8px 0 40px;
}

/* ─── Empty state ────────────────────────────────────────── */
.ga-empty {
    text-align: center;
    padding: 80px 24px;
    color: #BBB;
    font-size: 14px;
}

.ga-empty a { color: #111; text-decoration: none; border-bottom: 1px solid #E0E0E0; }

/* ─── Pagination ─────────────────────────────────────────── */
.ga-pag {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 0 72px;
}

.ga-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.12s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.ga-pgbtn:hover {
    border-color: #CCC;
    color: #111;
    background: #FAFAFA;
}

.ga-pgbtn.on {
    background: #0A0A0A;
    color: #fff;
    border-color: #0A0A0A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ─── Single gradient page ───────────────────────────────── */
.gs-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    /*font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;*/
}

.gs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #AAA;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.12s;
    font-weight: 500;
}

.gs-back:hover { color: #111; }

.gs-hero {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.gs-header { margin-bottom: 28px; }

.gs-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.gs-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #F0F0F0;
    padding: 4px;
    background: #fff;
}

.gs-brand-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BBB;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.gs-brand-label a { color: inherit; text-decoration: none; transition: color 0.12s; }
.gs-brand-label a:hover { color: #111; }

.gs-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0A0A0A !important;
    letter-spacing: -0.02em !important;
}

.gs-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.gs-swatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-swatch-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.gs-swatch-item code {
    font-size: 12px;
    color: #666;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: #F5F5F5;
    padding: 3px 8px;
    border-radius: 6px;
}

.gs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.gs-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.gs-tag-cat { background: #F0EEFF; color: #5B4FCF; }
.gs-tag-mood { background: #FFF7ED; color: #C2410C; }
.gs-tag-ind { background: #F0FDF4; color: #166534; }

/* ─── Code blocks ────────────────────────────────────────── */
.gs-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.gs-code-block {
    background: #F8F8F8;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.gs-code-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BBB;
    margin-bottom: 8px;
}

.gs-code-block pre {
    margin: 0;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: #333;
    padding-right: 52px;
    line-height: 1.6;
}

.gs-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #E8E8E8;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    color: #666;
}

.gs-copy-btn:hover { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.gs-copy-btn.ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }

/* ─── Related ────────────────────────────────────────────── */
.gs-related { margin-top: 56px; }

.gs-related h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 20px !important;
    color: #111 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #F0F0F0 !important;
}

.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ─── Submit form ────────────────────────────────────────── */
#gs-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

#gs-form-wrap h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0A0A0A !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.02em !important;
}

.gs-sub { font-size: 15px; color: #888; margin: 0 0 36px; line-height: 1.6; }

.gs-preview-box {
    width: 100%;
    height: 130px;
    border-radius: 14px;
    margin-bottom: 28px;
    transition: background 0.3s;
    background: linear-gradient(135deg, #E0E0E0, #C8C8C8);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.gs-field { margin-bottom: 18px; }

.gs-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.gs-field input,
.gs-field select,
.gs-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #E8E8E8;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.12s, box-shadow 0.12s;
    color: #111;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.gs-field input:focus,
.gs-field select:focus,
.gs-field textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.gs-field textarea { resize: vertical; min-height: 80px; }

.gs-colors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gs-color-input label { font-size: 12px; font-weight: 600; color: #444; display: block; margin-bottom: 6px; }
.gs-color-swatch { width: 100%; height: 34px; border-radius: 8px; border: 1.5px solid #E8E8E8; cursor: pointer; display: block; margin-bottom: 6px; }
.gs-color-input input[type=text] { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #E8E8E8; font-size: 12px; font-family: monospace; color: #111; box-sizing: border-box; }

.gs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gs-submit {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: #0A0A0A;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, transform 0.12s;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

.gs-submit:hover { background: #333; transform: translateY(-1px); }
.gs-hint { font-size: 11px; color: #CCC; margin-top: 5px; }
.gs-errors { background: #FFF0F0; border: 1px solid #FED7D7; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; color: #C53030; font-size: 13px; }
.gs-req { color: #E55; margin-left: 2px; }

.gs-success {
    text-align: center;
    padding: 60px 24px;
    background: #F0FDF4;
    border-radius: 16px;
    border: 1px solid #BBF7D0;
}

.gs-success h2 { font-size: 22px; font-weight: 700; color: #166534; margin: 0 0 8px; }
.gs-success p { color: #15803D; font-size: 14px; margin: 0; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .ga-hero { padding: 48px 0 36px; }
    .gs-hero { height: 200px; }
    .gs-title { font-size: 22px !important; }
    .gs-codes { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    #gradients-app { padding: 0 16px; }
    .ga-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gc-preview { height: 120px; }
    .ga-hero h1 { font-size: 26px !important; }
    .ga-hero p { font-size: 15px !important; }
    .gs-colors { grid-template-columns: 1fr 1fr; }
    .gs-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .ga-grid { grid-template-columns: 1fr; }
}
/* ─── Legal pages max width ──────────────────────────────── */
.page-template-default:not(.home) .entry-content {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 24px !important;
}

