/* ================================
   CHASE GUEST PORTAL - STYLES
   ================================ */

/* === PORTAL LAYOUT === */
.portal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.portal-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--storm-dark) 0%, #0d1225 100%);
    z-index: -1;
}

/* === LOGIN STATE === */
.login-container {
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.login-card {
    background: rgba(26, 31, 46, 0.7);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(251, 191, 36, 0.03);
}

.login-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cloud-white);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(249, 250, 251, 0.5);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    background: var(--cloud-white);
    color: #333;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    justify-content: center;
}

.google-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.google-signin-btn:active {
    transform: translateY(0);
}

.google-signin-btn svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(249, 250, 251, 0.3);
}

.login-footer a {
    color: var(--electric-amber);
    text-decoration: none;
}

/* === DASHBOARD STATE === */
.dashboard-container {
    max-width: 960px;
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(249, 250, 251, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--electric-amber);
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--electric-amber);
    background: rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--electric-amber);
}

.user-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cloud-white);
}

.user-email {
    font-size: 0.85rem;
    color: rgba(249, 250, 251, 0.4);
}

.signout-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(249, 250, 251, 0.15);
    color: rgba(249, 250, 251, 0.6);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.signout-btn:hover {
    border-color: var(--warning-orange);
    color: var(--warning-orange);
}

/* === DASHBOARD CARDS === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(249, 250, 251, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all var(--transition-fast);
}

.dash-card:hover {
    border-color: rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

.dash-card.full-width {
    grid-column: 1 / -1;
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dash-card-icon {
    font-size: 1.3rem;
}

.dash-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--electric-amber);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trip Overview */
.trip-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.trip-status.confirmed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.trip-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--electric-amber);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.trip-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(249, 250, 251, 0.04);
}

.trip-detail:last-child {
    border-bottom: none;
}

.trip-label {
    font-size: 0.85rem;
    color: rgba(249, 250, 251, 0.4);
}

.trip-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cloud-white);
}

/* Document Checklist */
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(249, 250, 251, 0.04);
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.doc-check.done {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.doc-check.pending {
    background: rgba(249, 250, 251, 0.05);
    color: rgba(249, 250, 251, 0.3);
    border: 1px solid rgba(249, 250, 251, 0.1);
}

.doc-name {
    font-size: 0.9rem;
    color: var(--cloud-white);
}

.doc-name.completed {
    color: rgba(249, 250, 251, 0.4);
    text-decoration: line-through;
}

/* Weather Briefing */
.weather-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(249, 250, 251, 0.35);
}

.weather-placeholder .weather-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.weather-placeholder p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Guide */
.guide-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.guide-name {
    font-weight: 600;
    color: var(--cloud-white);
    font-size: 1rem;
}

.guide-role {
    font-size: 0.8rem;
    color: rgba(249, 250, 251, 0.4);
}

.guide-contact-methods {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.guide-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(249, 250, 251, 0.05);
    border: 1px solid rgba(249, 250, 251, 0.08);
    border-radius: 8px;
    color: rgba(249, 250, 251, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.guide-contact-badge:hover {
    border-color: var(--electric-amber);
    color: var(--electric-amber);
}

/* === NO TRIP STATE === */
.no-trip-message {
    text-align: center;
    padding: 2rem;
}

.no-trip-message h3 {
    font-family: var(--font-heading);
    color: var(--cloud-white);
    margin-bottom: 0.75rem;
}

.no-trip-message p {
    color: rgba(249, 250, 251, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.no-trip-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--electric-amber), var(--warning-orange));
    color: var(--storm-dark);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.no-trip-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* === LOADING STATE === */
.portal-loading {
    text-align: center;
    color: rgba(249, 250, 251, 0.4);
    font-size: 0.95rem;
}

.portal-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(249, 250, 251, 0.1);
    border-top-color: var(--electric-amber);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .portal-wrapper {
        padding: 5rem var(--spacing-sm) var(--spacing-md);
        align-items: flex-start;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.4rem;
    }

    .guide-contact-methods {
        flex-direction: column;
    }
}