/*
Theme Name: Google Discover Simulator
Theme URI: https://cantuariasites.com.br/
Description: Simulador visual e técnico de cards do Google Discover.
Version: 1.0.7
Author: Cantuaria Sites
*/

:root {
    --gds-bg: #0d0d0f;
    --gds-surface: #151518;
    --gds-surface-2: #1d1d21;
    --gds-border: #303036;
    --gds-text: #f3f3f4;
    --gds-muted: #a7a7ae;
    --gds-accent: #d8d8dc;
    --gds-success: #8dd7aa;
    --gds-warning: #f0c777;
    --gds-danger: #ee8f8f;
    --gds-radius: 18px;
    --gds-shadow: 0 20px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--gds-bg);
    color: var(--gds-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }

.gds-header {
    border-bottom: 1px solid var(--gds-border);
    background: rgba(13,13,15,.92);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.gds-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 74px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.gds-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.gds-brand img {
    width: 138px;
    height: auto;
    display: block;
}
.gds-brand-divider {
    width: 1px;
    height: 30px;
    background: var(--gds-border);
}
.gds-brand-name {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.01em;
}
.gds-brand-kicker {
    color: var(--gds-muted);
    font-size: 11px;
    margin-top: 2px;
}

.gds-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 90px;
}
.gds-hero {
    max-width: 820px;
    margin-bottom: 44px;
}
.gds-eyebrow {
    color: #bcbcc2;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.gds-title {
    font-size: clamp(42px, 7vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0 0 22px;
}
.gds-title em {
    font-style: normal;
    color: #8e8e95;
}
.gds-lead {
    color: var(--gds-muted);
    font-size: 18px;
    line-height: 1.65;
    max-width: 720px;
    margin: 0;
}

.gds-form-card {
    background: linear-gradient(145deg, #18181b, #111114);
    border: 1px solid var(--gds-border);
    border-radius: 24px;
    padding: 10px;
    box-shadow: var(--gds-shadow);
}
.gds-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.gds-input {
    width: 100%;
    min-height: 60px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gds-text);
    padding: 0 18px;
    font-size: 16px;
}
.gds-input::placeholder { color: #6e6e76; }
.gds-button {
    min-height: 60px;
    border: 0;
    border-radius: 15px;
    padding: 0 25px;
    cursor: pointer;
    background: #ededee;
    color: #111113;
    font-weight: 750;
    transition: transform .18s ease, opacity .18s ease;
}
.gds-button:hover { transform: translateY(-1px); }
.gds-button:disabled { opacity: .55; cursor: wait; transform: none; }
.gds-form-note {
    margin: 12px 8px 4px;
    color: #77777f;
    font-size: 11px;
    line-height: 1.5;
}

.gds-status {
    margin-top: 18px;
    min-height: 22px;
    color: var(--gds-muted);
    font-size: 14px;
}
.gds-status.is-error { color: var(--gds-danger); }
.gds-status.is-success { color: var(--gds-success); }

.gds-results { margin-top: 56px; }
.gds-results[hidden] { display: none; }
.gds-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 42px;
    align-items: start;
}
.gds-panel {
    background: var(--gds-surface);
    border: 1px solid var(--gds-border);
    border-radius: var(--gds-radius);
    overflow: hidden;
}
.gds-panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gds-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.gds-panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}
.gds-panel-body { padding: 20px; }

.gds-score {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}
.gds-score-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #44444b;
    font-size: 20px;
    font-weight: 800;
}
.gds-score-copy strong { display: block; margin-bottom: 4px; }
.gds-score-copy span { color: var(--gds-muted); font-size: 12px; line-height: 1.5; }

.gds-checks { display: grid; gap: 8px; }
.gds-check {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid #29292e;
    border-radius: 12px;
    background: #121215;
}
.gds-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: #242429;
}
.gds-check.ok .gds-check-icon { color: var(--gds-success); }
.gds-check.warn .gds-check-icon { color: var(--gds-warning); }
.gds-check.bad .gds-check-icon { color: var(--gds-danger); }
.gds-check-name { font-size: 13px; font-weight: 650; }
.gds-check-detail { color: #7f7f87; font-size: 11px; text-align: right; }

.gds-meta-list { margin: 0; }
.gds-meta-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #29292e;
}
.gds-meta-row:last-child { border-bottom: 0; }
.gds-meta-row dt { color: #85858c; font-size: 12px; }
.gds-meta-row dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.gds-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #c9c9ce;
}

.gds-image-section { margin-top: 20px; }
.gds-image-preview {
    background: #0b0b0d;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2a2a2e;
}
.gds-image-preview img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.gds-image-caption {
    padding: 12px 14px;
    color: #96969d;
    font-size: 11px;
}

.gds-phone-wrap {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
}
.gds-preview-switch {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 0 0 12px;
}
.gds-preview-switch button {
    border: 1px solid #38383d;
    background: #18181b;
    color: #a7a7ae;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    cursor: pointer;
}
.gds-preview-switch button.is-active {
    background: #ededee;
    color: #111113;
    border-color: #ededee;
}
.gds-phone {
    width: 390px;
    max-width: 100%;
    border: 10px solid #252529;
    border-radius: 42px;
    background: #f4f4f6;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    overflow: hidden;
}
.gds-phone-notch {
    width: 110px;
    height: 24px;
    background: #252529;
    border-radius: 0 0 15px 15px;
    margin: -1px auto 0;
}
.gds-discover {
    min-height: 720px;
    color: #202124;
    background: #f5f6f8;
    padding-bottom: 25px;
}
.gds-discover-top {
    padding: 18px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gds-discover-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.04em;
}
.gds-discover-search {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e3e5e9;
    display: grid;
    place-items: center;
    font-size: 14px;
}
.gds-feed-card {
    background: white;
    margin: 0 0 10px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.gds-feed-card.compact {
    margin: 0 8px 10px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.gds-publisher {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 51px;
    padding: 9px 14px;
}
.gds-publisher-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e6e8;
    flex: 0 0 32px;
}
.gds-publisher-text {
    min-width: 0;
    flex: 1;
}
.gds-publisher-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gds-publisher-time {
    font-size: 10px;
    color: #777a80;
    margin-left: auto;
    white-space: nowrap;
}
.gds-card-menu {
    color: #73767c;
    font-size: 19px;
    line-height: 1;
}
.gds-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #dedfe2;
}
.gds-card-content { padding: 13px 14px 8px; }
.gds-card-preview {
    color: #4d5055;
    font-size: 13px;
    line-height: 1.38;
    margin-bottom: 8px;
    display: none;
}
.gds-card-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.23;
    letter-spacing: -.025em;
    font-weight: 700;
}
.gds-card-title::before {
    content: "— ";
    color: #70737a;
    font-weight: 500;
}
.gds-card-domain {
    margin-top: 10px;
    color: #777a80;
    font-size: 10px;
}
.gds-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding: 8px 14px 13px;
    color: #6d7075;
}
.gds-card-action { font-size: 17px; }
.gds-skeleton-card {
    height: 150px;
    margin: 0 8px 10px;
    border-radius: 18px;
    background: linear-gradient(90deg,#e9eaec,#f4f4f5,#e9eaec);
}

.gds-footer {
    border-top: 1px solid var(--gds-border);
    color: #7c7c83;
    font-size: 11px;
    padding: 28px 24px;
    text-align: center;
}
.gds-footer strong { color: #bdbdc2; }

.gds-alt-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.gds-alt-image {
    border: 1px solid #2b2b30;
    border-radius: 9px;
    overflow: hidden;
    background: #0b0b0d;
}
.gds-alt-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gds-alt-image span {
    display: block;
    padding: 6px;
    color: #7e7e86;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .gds-result-grid { grid-template-columns: 1fr; }
    .gds-phone-wrap { position: static; }
}
@media (max-width: 640px) {
    .gds-header-inner { padding: 12px 16px; }
    .gds-brand-divider, .gds-brand-kicker { display: none; }
    .gds-brand img { width: 125px; }
    .gds-main { padding: 50px 16px 70px; }
    .gds-form { grid-template-columns: 1fr; }
    .gds-button { width: 100%; }
    .gds-meta-row { grid-template-columns: 1fr; gap: 5px; }
}

/* Compact Discover layout: headline left, square image right. */
.gds-feed-card.compact {
    display: grid;
    grid-template-columns: 1fr 122px;
    grid-template-areas:
        "publisher publisher"
        "content image"
        "actions actions";
}
.gds-feed-card.compact .gds-publisher { grid-area: publisher; }
.gds-feed-card.compact .gds-card-image {
    grid-area: image;
    width: 108px;
    height: 108px;
    aspect-ratio: 1;
    margin: 12px 12px 12px 0;
    border-radius: 10px;
}
.gds-feed-card.compact .gds-card-content {
    grid-area: content;
    padding: 16px 0 8px 14px;
}
.gds-feed-card.compact .gds-card-title {
    font-size: 16px;
    line-height: 1.25;
}
.gds-feed-card.compact .gds-card-title::before { display: none; }
.gds-feed-card.compact .gds-card-domain,
.gds-feed-card.compact .gds-card-preview { display: none; }
.gds-feed-card.compact .gds-card-actions {
    grid-area: actions;
    border-top: 1px solid #ececef;
}
.gds-feed-card.show-preview .gds-card-preview { display: block; }

.gds-options-section{margin-top:24px;padding-top:20px;border-top:1px solid #29292e}
.gds-options-label{font-size:11px;color:#8a8a91;font-weight:750;text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px}
.gds-option-buttons{display:flex;flex-wrap:wrap;gap:7px}
.gds-option-button{border:1px solid #35353b;background:#121215;color:#aaaab1;border-radius:9px;padding:8px 10px;font-size:11px;cursor:pointer;max-width:100%;text-align:left}
.gds-option-button strong{color:#dedee2;font-weight:750}
.gds-option-button.is-active{background:#ededee;color:#111113;border-color:#ededee}
.gds-option-button.is-active strong{color:#111113}
.gds-option-thumb{width:42px;height:30px;object-fit:cover;vertical-align:middle;border-radius:4px;margin-right:7px}
.gds-feed-card .gds-card-preview{display:none!important}
.gds-feed-card.show-preview .gds-card-preview{display:block!important}
.gds-feed-card .gds-card-title::before{content:""}
.gds-feed-card.show-preview .gds-card-title::before{content:"— "}
.gds-feed-card .gds-card-title{font-size:19px;line-height:1.22;font-weight:500;letter-spacing:-.02em}
.gds-feed-card .gds-card-actions{justify-content:flex-end;gap:19px;padding:6px 14px 13px}
.gds-feed-card .gds-publisher{min-height:48px;padding:9px 14px 7px}
.gds-feed-card .gds-publisher-text{display:flex;align-items:center;gap:5px}
.gds-feed-card .gds-publisher-time{margin-left:0}

/* Current Discover main card — based on the supplied August 2026 reference. */
.gds-feed-card {
    background: #202124;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    color: #f5f5f5;
}
.gds-feed-card .gds-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #303136;
}
.gds-feed-card .gds-card-content {
    padding: 17px 18px 11px;
    background: #202124;
}
.gds-feed-card .gds-card-title {
    margin: 0;
    color: #f5f5f5;
    font-size: 20px;
    line-height: 1.38;
    font-weight: 500;
    letter-spacing: -.018em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.gds-feed-card .gds-card-title::before {
    content: none !important;
}
.gds-feed-card .gds-card-preview,
.gds-feed-card .gds-card-domain {
    display: none !important;
}
.gds-feed-card.show-preview .gds-card-preview {
    display: block !important;
    color: #d1d2d5;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}
.gds-feed-card .gds-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 8px 18px 16px;
    background: #202124;
}
.gds-feed-card .gds-publisher {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}
.gds-feed-card .gds-publisher-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #34363b;
}
.gds-feed-card .gds-publisher-text {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}
.gds-feed-card .gds-publisher-name {
    color: #f1f1f2;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gds-feed-card .gds-publisher-separator {
    color: #a9aaae;
    font-size: 13px;
    flex: 0 0 auto;
}
.gds-feed-card .gds-publisher-time {
    color: #a9aaae;
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
}
.gds-feed-card .gds-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0;
    color: #bfc0c4;
}
.gds-feed-card .gds-card-action {
    width: 25px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #bfc0c4;
    display: grid;
    place-items: center;
    cursor: default;
}
.gds-feed-card .gds-card-action svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gds-feed-card .gds-card-action:first-child svg {
    width: 25px;
    height: 25px;
}
.gds-feed-card.compact {
    display: grid;
    grid-template-columns: 1fr 122px;
    grid-template-areas:
        "image image"
        "content content"
        "footer footer";
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.gds-feed-card.compact .gds-card-image { grid-area: image; }
.gds-feed-card.compact .gds-card-content { grid-area: content; }
.gds-feed-card.compact .gds-card-footer { grid-area: footer; }
.gds-feed-card.compact .gds-card-title {
    font-size: 18px;
}

.gds-footer-version {
    text-align: center;
    padding: 14px 20px 22px;
    color: #777982;
    font-size: 11px;
    letter-spacing: .02em;
}
