/* SAM Hosting Manager — PatternFly overrides */

.pf-v5-c-page__main-section {
    padding: 2rem;
}

.pf-v5-c-masthead__brand {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* ── Masthead nav ───────────────────────────────────────────────── */
.sam-mastnav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sam-mastnav__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.sam-mastnav__link:hover {
    color: #ffffff;
}

/* Reset for the logout <button> */
.sam-mastnav__link--btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ── Shared layout helper ──────────────────────────────────────── */
.sam-section-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ── Landing — hero ────────────────────────────────────────────── */
.sam-hero {
    background: linear-gradient(135deg, #001f40 0%, #003366 60%, #00498c 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.sam-hero__content {
    max-width: 680px;
    margin: 0 auto;
}

.sam-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.sam-hero__subtitle {
    font-size: 1.125rem;
    color: #b8d4ec;
    line-height: 1.65;
    margin: 0 0 2rem;
}

.sam-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sam-hero__note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #7aafd4;
}

/* Secondary button on dark hero background */
.sam-btn-ghost.pf-v5-c-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.sam-btn-ghost.pf-v5-c-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── Landing — features grid ───────────────────────────────────── */
.sam-features.pf-v5-c-page__main-section {
    padding: 3rem 2rem;
}

.sam-feature-card {
    text-align: center;
    padding: 1.25rem 1rem;
}

.sam-feature-card__icon {
    color: var(--pf-v5-global--primary-color--100, #0066cc);
}

/* ── Landing — disclaimer ──────────────────────────────────────── */
.sam-disclaimer.pf-v5-c-page__main-section {
    background: var(--pf-v5-global--BackgroundColor--200, #f0f0f0);
    padding: 2rem;
}

/* ── Create instance form ──────────────────────────────────────── */
.sam-field-ok {
    color: var(--pf-v5-global--success-color--100, #3e8635);
    font-size: 0.875rem;
}

.sam-field-error {
    color: var(--pf-v5-global--danger-color--100, #c9190b);
    font-size: 0.875rem;
}

.sam-hostname-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--pf-v5-global--BackgroundColor--200, #f0f0f0);
    border-left: 3px solid var(--pf-v5-global--primary-color--100, #0066cc);
    border-radius: 0 3px 3px 0;
    font-size: 0.875rem;
}

.sam-hostname-preview__label {
    color: var(--pf-v5-global--Color--200, #6a6e73);
    white-space: nowrap;
}

.sam-hostname-preview code {
    font-family: monospace;
    color: var(--pf-v5-global--Color--100, #151515);
    font-size: 0.875rem;
}

.sam-ai-mode-help {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--pf-v5-global--Color--200, #6a6e73);
}

/* ── Instance detail — provisioning banner ─────────────────────── */
.sam-provisioning-banner {
    animation: sam-pulse 2.5s ease-in-out infinite;
}

@keyframes sam-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.sam-spinner {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sam-spin 0.7s linear infinite;
    margin-right: 0.4em;
    vertical-align: -0.1em;
}

@keyframes sam-spin {
    to { transform: rotate(360deg); }
}
