/* Winery Age Score — Frontend Styles */

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

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

.was-search-section {
    text-align: center;
    margin-bottom: 30px;
}

.was-search-section h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.was-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

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

.was-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;
}

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

.was-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;
}

.was-search-result-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.was-search-result-item:hover {
    background: #fef5f0;
}

.was-search-result-item:last-child {
    border-bottom: none;
}

.was-result-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.was-result-meta {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.was-result-score {
    float: right;
    font-weight: 700;
    font-size: 18px;
    color: #EE7532;
}

.was-search-no-results {
    padding: 16px 18px;
    color: #999;
    font-style: italic;
}

.was-search-loading {
    padding: 16px 18px;
    color: #999;
    text-align: center;
}

/* --- Request Link (no results state) --- */

.was-request-link {
    margin-top: 8px;
    font-style: normal;
}

.was-request-link a {
    color: #EE7532;
    font-weight: 600;
    text-decoration: none;
}

.was-request-link a:hover {
    text-decoration: underline;
}

/* --- Gate --- */

.was-gate {
    text-align: center;
    padding: 40px 20px;
}

.was-gate h2 {
    font-size: 28px;
}

.was-gate p {
    font-size: 16px;
    color: #555;
    max-width: 500px;
    margin: 10px auto;
}

.was-gate-actions {
    margin: 25px 0 15px;
}

.was-gate-note {
    font-size: 13px;
    color: #999;
}

/* --- Buttons --- */

.was-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;
}

.was-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.was-btn-primary {
    background: #EE7532;
    color: #fff;
}

.was-btn-primary:visited,
.was-btn-primary:link,
.was-btn-primary:active {
    color: #fff;
}

.was-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

/* --- Winery URL --- */

.was-winery-url {
    text-align: center;
    margin: 0 0 16px;
    font-size: 14px;
}

.was-winery-url a {
    color: #EE7532;
    text-decoration: none;
}

.was-winery-url a:hover {
    text-decoration: underline;
}

/* --- Disclaimer --- */

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

.was-disclaimer p {
    margin: 0;
}

/* --- Screenshot --- */

.was-screenshot {
    margin: 20px 0;
    text-align: center;
}

.was-screenshot img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.was-screenshot-caption {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* --- Report Section --- */

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

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

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

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

.was-score-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-top: 2px solid #EE7532;
    border-bottom: 2px solid #EE7532;
}

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

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

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

.was-section {
    margin: 20px 0;
}

.was-section h3 {
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* --- Tables --- */

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

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

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

/* --- Signals Grid --- */

.was-signals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.was-signal {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.was-signal-yes {
    background: #e8f5e9;
    color: #2e7d32;
}

.was-signal-no {
    background: #fafafa;
    color: #bbb;
}

/* --- Lists --- */

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

.was-list li {
    margin: 4px 0;
    line-height: 1.5;
}

/* --- Footer --- */

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

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

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

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

/* --- Responsive --- */

@media (max-width: 600px) {
    .was-score-bar {
        flex-direction: column;
        gap: 12px;
    }

    .was-signals-grid {
        justify-content: center;
    }

    .was-table {
        font-size: 12px;
    }

    .was-table th, .was-table td {
        padding: 6px 8px;
    }
}
