/* ParaGuru — Full page styles for aviometrics.com */

.page-paraguru { background: var(--color-bg); }

.paraguru-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-4) var(--space-8);
}

/* Beta banner */
.pguru-beta-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pguru-beta-badge {
    background: #F59E0B;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}
.pguru-beta-banner p {
    margin: 0;
    font-size: 12.5px;
    color: #92400E;
    line-height: 1.4;
}
.pguru-beta-banner a { color: #B45309; font-weight: 600; text-decoration: none; }
.pguru-beta-banner a:hover { text-decoration: underline; }

/* Hero */
.paraguru-hero {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) 0 var(--space-4);
}

.paraguru-hero-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0c4a6e, #0891b2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.paraguru-hero h1 {
    font-size: var(--text-2xl, 1.75rem);
    font-weight: 800;
    color: #0c4a6e;
    margin: 0;
    letter-spacing: -0.5px;
}

.paraguru-hero p {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-slate-600);
    margin: 2px 0 0;
}

/* Chat container */
.paraguru-chat {
    background: white;
    border: 2px solid #0891b2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.12);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px);
    min-height: 400px;
    max-height: 700px;
}

.paraguru-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5, 20px);
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
}

/* Messages */
.pguru-msg {
    max-width: 88%;
    animation: pguruFadeIn 0.25s ease;
}
@keyframes pguruFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pguru-msg-assistant { align-self: flex-start; }
.pguru-msg-user { align-self: flex-end; }

.pguru-msg-content {
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: var(--text-sm, 0.875rem);
}

.pguru-msg-assistant .pguru-msg-content {
    background: var(--color-bg, #FAFBFE);
    border: 1px solid var(--color-slate-200);
    border-radius: 12px 12px 12px 3px;
}

.pguru-msg-user .pguru-msg-content {
    background: var(--color-primary-600);
    color: white;
    border-radius: 12px 12px 3px 12px;
}

.pguru-msg-content p { margin: 0 0 8px; }
.pguru-msg-content p:last-child { margin-bottom: 0; }
.pguru-msg-content h3 {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    margin: 12px 0 4px;
    color: var(--color-slate-800);
}
.pguru-msg-content h3:first-child { margin-top: 0; }
.pguru-msg-content h4 {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    margin: 8px 0 4px;
    color: var(--color-slate-700);
}
.pguru-msg-content ul {
    margin: 4px 0 8px 18px;
    padding: 0;
}
.pguru-msg-content li {
    margin-bottom: 3px;
    line-height: 1.5;
}

/* Suggestions */
.pguru-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.pguru-suggestion {
    background: white;
    border: 1px solid var(--color-primary-200);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: var(--color-primary-600);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pguru-suggestion:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-400);
}

/* Sources */
.pguru-sources {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--color-slate-200);
    font-size: 12px;
    color: var(--color-slate-500);
}
.pguru-sources-label {
    font-weight: 600;
    margin-right: 4px;
}
.pguru-source-tag {
    display: inline-block;
    background: var(--color-primary-50);
    color: var(--color-primary-600);
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 2px;
}

/* Typing indicator */
.pguru-typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
}
.pguru-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary-500);
    animation: pguruBounce 1.4s infinite ease-in-out;
}
.pguru-typing span:nth-child(2) { animation-delay: 0.2s; }
.pguru-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pguruBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.paraguru-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--color-slate-200);
    background: white;
}
.paraguru-form {
    display: flex;
    gap: 8px;
}
.paraguru-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    font-size: var(--text-sm, 0.875rem);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.paraguru-input:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(10, 110, 154, 0.1);
}
.paraguru-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: var(--color-primary-600);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.paraguru-send:hover { background: var(--color-primary-700); }
.paraguru-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Stats bar */
.paraguru-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8, 32px);
    margin-top: var(--space-5, 20px);
    padding: var(--space-4, 16px);
}
.paraguru-stat {
    text-align: center;
}
.paraguru-stat-value {
    display: block;
    font-size: var(--text-xl, 1.25rem);
    font-weight: 700;
    color: var(--color-primary-600);
}
.paraguru-stat-label {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Disclaimer */
.paraguru-disclaimer {
    text-align: center;
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-slate-400);
    margin-top: var(--space-4, 16px);
    line-height: 1.5;
}
.paraguru-disclaimer a {
    color: var(--color-primary-600);
    text-decoration: none;
}
.paraguru-disclaimer a:hover { text-decoration: underline; }

/* Feedback buttons */
.pguru-feedback {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
}
.pguru-fb-btn {
    background: none;
    border: 1px solid var(--color-slate-200);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--color-slate-400);
    transition: all 0.15s;
    font-family: inherit;
}
.pguru-fb-btn:hover {
    border-color: var(--color-primary-500);
    color: var(--color-primary-600);
}
.pguru-fb-thanks {
    font-size: 12px;
    color: var(--color-primary-600);
    padding: 3px 0;
}

/* ========== WEATHER & NOTAM PANEL ========== */

.pguru-weather-panel {
    background: white;
    border: 2px solid #0e7490;
    border-radius: 12px;
    margin-top: var(--space-4, 16px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(14, 116, 144, 0.1);
}

.pguru-weather-header {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: 12px 16px;
    background: linear-gradient(135deg, #0c4a6e, #0e7490);
    border-bottom: none;
}
.pguru-weather-header svg { color: #fff; flex-shrink: 0; }
.pguru-weather-header h3 {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.pguru-site-select {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(255,255,255,0.15);
    color: #fff;
    min-width: 0;
}
.pguru-site-select option { color: #1e293b; background: white; }

.pguru-weather-refresh {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
    flex-shrink: 0;
}
.pguru-weather-refresh:hover { background: rgba(255,255,255,0.3); color: #fff; }

.pguru-weather-content { padding: 16px; }
.pguru-weather-loading, .pguru-weather-hint {
    color: var(--color-slate-400);
    font-size: var(--text-sm, 0.875rem);
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* Current conditions */
.pguru-wx-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.pguru-wx-temp {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-slate-800);
    line-height: 1;
}
.pguru-wx-desc {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-slate-500);
    margin-top: 2px;
}
.pguru-wx-flyability {
    text-align: center;
    border: 2px solid;
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 80px;
}
.pguru-wx-score {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.pguru-wx-rating {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-600);
    margin-top: 2px;
}

/* Details grid */
.pguru-wx-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.pguru-wx-detail {
    text-align: center;
    padding: 8px 4px;
    background: var(--color-bg, #FAFBFE);
    border-radius: 8px;
}
.pguru-wx-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-400);
    margin-bottom: 2px;
}
.pguru-wx-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-slate-700);
}

/* Issues */
.pguru-wx-issues { margin-bottom: 12px; }
.pguru-wx-issue {
    padding: 6px 10px;
    background: #FEF3C7;
    border-radius: 6px;
    font-size: 12.5px;
    color: #92400E;
    margin-bottom: 4px;
}

/* Hourly forecast */
.pguru-wx-forecast { margin-bottom: 12px; }
.pguru-wx-forecast-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-400);
    margin-bottom: 8px;
}
.pguru-wx-hours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.pguru-wx-hour {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid var(--color-slate-100);
}
.pguru-wx-hour-time { font-size: 11px; font-weight: 600; color: var(--color-slate-500); }
.pguru-wx-hour-wind { font-size: 13px; font-weight: 700; color: var(--color-slate-700); margin: 2px 0; }
.pguru-wx-hour-wind small { font-size: 9px; font-weight: 400; }
.pguru-wx-hour-dir { font-size: 10px; color: var(--color-slate-400); }
.pguru-wx-hour-thermal { font-size: 10px; color: var(--color-slate-500); margin-top: 2px; }

/* NOTAMs */
.pguru-wx-notams {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.pguru-wx-notam-header {
    font-size: 13px;
    font-weight: 700;
    color: #991B1B;
    margin-bottom: 6px;
}
.pguru-wx-notam {
    font-size: 12px;
    color: #7F1D1D;
    margin-bottom: 4px;
    line-height: 1.4;
}
.pguru-wx-notam-links {
    font-size: 11.5px;
    color: var(--color-slate-500);
}
.pguru-wx-notam-links a {
    color: var(--color-primary-600);
    text-decoration: none;
    margin-right: 8px;
}
.pguru-wx-notam-links a:hover { text-decoration: underline; }

/* ========== MOBILE RESPONSIVE ========== */

/* Tablets and small screens */
@media (max-width: 768px) {
    .paraguru-container { padding: var(--space-3, 12px); }
    .paraguru-hero { padding: var(--space-4) 0 var(--space-3); gap: var(--space-3); }
    .paraguru-hero h1 { font-size: var(--text-xl, 1.25rem); }
    .paraguru-hero-icon { width: 44px; height: 44px; border-radius: 10px; }
    .paraguru-hero-icon svg { width: 24px; height: 24px; }
    .pguru-wx-details { grid-template-columns: repeat(2, 1fr); }
    .pguru-wx-hours { grid-template-columns: repeat(3, 1fr); }
    .paraguru-stats { gap: var(--space-4, 16px); flex-wrap: wrap; }
}

/* Mobile phones */
@media (max-width: 480px) {
    .paraguru-container { padding: 4px; padding-top: 0; }

    /* Hide hero on mobile — save space */
    .paraguru-hero { display: none; }

    /* Beta banner minimal */
    .pguru-beta-banner { padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; gap: 6px; }
    .pguru-beta-badge { font-size: 10px; padding: 2px 6px; }
    .pguru-beta-banner p { font-size: 11px; }

    /* Chat fills available space */
    .paraguru-chat {
        height: calc(100svh - 130px);
        min-height: 250px;
        max-height: none;
        border-radius: 10px;
        border-width: 1px;
    }

    .paraguru-messages { padding: 10px; gap: 6px; }
    .pguru-msg { max-width: 96%; }
    .pguru-msg-content { padding: 8px 10px; font-size: 13px; line-height: 1.45; }
    .pguru-msg-content p { margin: 0 0 4px; }

    /* Suggestions — horizontal scroll on mobile */
    .pguru-suggestions { gap: 4px; margin-top: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .pguru-suggestion { padding: 4px 8px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }

    /* Input area — sticky bottom feel */
    .paraguru-input-area { padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
    .paraguru-input { padding: 10px 12px; font-size: 16px; border-radius: 10px; }
    .paraguru-send { width: 44px; height: 44px; border-radius: 10px; }

    /* Weather panel compact */
    .pguru-weather-panel { margin-top: 6px; border-radius: 8px; border-width: 1px; }
    .pguru-weather-header { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
    .pguru-weather-header h3 { font-size: 0.75rem; }
    .pguru-site-select { width: 100%; font-size: 14px; padding: 6px 8px; }
    .pguru-weather-refresh { padding: 6px; }
    .pguru-weather-content { padding: 8px 10px; }

    .pguru-wx-current { flex-direction: column; gap: 6px; }
    .pguru-wx-flyability { align-self: flex-start; padding: 6px 12px; }
    .pguru-wx-flyability-score { font-size: 1.25rem; }
    .pguru-wx-details { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .pguru-wx-detail-cell { padding: 4px; font-size: 11px; }
    .pguru-wx-hours { grid-template-columns: repeat(3, 1fr); gap: 2px; }
    .pguru-wx-hour-card { padding: 3px; font-size: 10px; }
    .pguru-wx-issue { font-size: 11px; padding: 4px 8px; }

    /* Stats — single row, tiny */
    .paraguru-stats { gap: 8px; padding: 6px; margin-top: 4px; }
    .paraguru-stat-value { font-size: 0.875rem; }
    .paraguru-stat-label { font-size: 0.5625rem; }

    .paraguru-disclaimer { font-size: 0.5625rem; margin-top: 4px; }
}
