/* Winery GEO Readiness — Frontend Styles (mirrors website-age plugin styles, geo-* prefix) */

.geo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* --- Search Section --- */

.geo-search-section { text-align: center; margin-bottom: 30px; }
.geo-search-section h2 { font-size: 28px; margin-bottom: 8px; }
.geo-subtitle { color: #666; font-size: 15px; margin-bottom: 20px; }

.geo-search-wrapper { position: relative; max-width: 500px; margin: 0 auto; }

.geo-search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.geo-search-input:focus { border-color: #EE7532; }

.geo-search-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.geo-search-result-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.geo-search-result-item:hover { background: #fef5f0; }
.geo-search-result-item:last-child { border-bottom: none; }
.geo-search-result-item.active { background: #fef5f0; }

.geo-result-name { font-weight: 600; font-size: 15px; color: #333; }
.geo-result-meta { font-size: 13px; color: #888; margin-top: 2px; }
.geo-result-score { float: right; font-weight: 700; font-size: 18px; color: #EE7532; }

.geo-search-no-results { padding: 16px 18px; color: #999; font-style: italic; }
.geo-search-loading { padding: 16px 18px; color: #999; text-align: center; }

.geo-request-link { margin-top: 8px; font-style: normal; }
.geo-request-link a { color: #EE7532; font-weight: 600; text-decoration: none; }
.geo-request-link a:hover { text-decoration: underline; }

/* --- Gate --- */

.geo-gate { text-align: center; padding: 40px 20px; }
.geo-gate h2 { font-size: 28px; }
.geo-gate p { font-size: 16px; color: #555; max-width: 500px; margin: 10px auto; }
.geo-gate-actions { margin: 25px 0 15px; }

/* --- Buttons --- */

.geo-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    margin: 0 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.geo-btn:hover { opacity: 0.85; color: #fff; }
.geo-btn-primary { background: #EE7532; color: #fff; }
.geo-btn-primary:visited, .geo-btn-primary:link, .geo-btn-primary:active { color: #fff; }
.geo-btn-secondary { background: #f0f0f0; color: #333; }

/* --- Report Container --- */

.geo-report-section { margin-top: 30px; }

.geo-report {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
}

.geo-report-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.geo-report-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.geo-winery-url { text-align: center; margin: 0 0 16px; font-size: 14px; }
.geo-winery-url a { color: #EE7532; text-decoration: none; }
.geo-winery-url a:hover { text-decoration: underline; }

.geo-disclaimer {
    background: #f9f9f9;
    border-left: 3px solid #EE7532;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.geo-disclaimer p { margin: 0; }

/* --- Score Bar (above the fold) --- */

.geo-score-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    margin-bottom: 20px;
    border-top: 2px solid #EE7532;
    border-bottom: 2px solid #EE7532;
    background: #fef5f0;
}

.geo-score-item { text-align: center; }

.geo-score-main .geo-score-number {
    font-size: 48px;
    font-weight: 800;
    color: #EE7532;
    line-height: 1;
}

.geo-score-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #EE7532;
}

.geo-score-tier {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geo-score-rank {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    max-width: 250px;
}

.geo-score-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Sections --- */

.geo-section { margin: 24px 0; }

.geo-section h3 {
    font-size: 17px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* --- Tables --- */

.geo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 10px 0;
}

.geo-table th {
    background: #fef5f0;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.geo-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.geo-component-note { color: #888; font-size: 12px; }

.geo-total-row td {
    background: #fef5f0;
    font-size: 15px;
}

.geo-check-yes { color: #2e7d32; font-weight: 700; font-size: 16px; }
.geo-check-no  { color: #c62828; font-weight: 700; font-size: 16px; }

/* --- Question categories --- */

.geo-question-category { margin: 14px 0; }

.geo-question-category h4 {
    font-size: 14px;
    margin: 8px 0 4px;
    color: #555;
}

.geo-strongest {
    color: #EE7532;
    font-weight: 600;
    font-style: italic;
}

.geo-question-table td:first-child { width: 90%; }
.geo-question-table td:last-child { width: 50px; text-align: center; }

/* --- Lists --- */

.geo-list {
    list-style: disc;
    padding-left: 24px;
    font-size: 14px;
}

.geo-list li { margin: 6px 0; line-height: 1.5; }

.geo-recommendations {
    padding-left: 24px;
    font-size: 14px;
}

.geo-recommendations li {
    margin: 12px 0;
    line-height: 1.5;
}

.geo-recommendations li p {
    margin: 4px 0 0;
    color: #555;
}

/* --- Code/inline tech text --- */

code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: #c7254e;
}

/* --- Footer --- */

.geo-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.geo-footer a { color: #EE7532; text-decoration: none; }

/* --- PDF Download --- */

.geo-pdf-section { text-align: center; margin-top: 20px; }

/* --- Responsive --- */

@media (max-width: 600px) {
    .geo-score-bar { flex-direction: column; gap: 16px; }
    .geo-score-main .geo-score-number { font-size: 40px; }
    .geo-table { font-size: 12px; }
    .geo-table th, .geo-table td { padding: 6px 8px; }
}
