/* =========================================================
   Partner Dashboard - Complete Styles
   Matches stakeholder-approved HTML exactly
   ========================================================= */

/* Partner Theme - Gold/Amber */
:root {
    --partner-primary: #fbbf24;
    --partner-primary-rgb: 251, 191, 36;
    --partner-dark: #92400e;
    --partner-light: rgba(251, 191, 36, 0.15);
}

/* =========================================================
   Role Context Banner - Partner Gold
   ========================================================= */
.role-context-banner {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding: 0.5rem 6vw;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.role-context-banner span {
    color: var(--color-text-soft);
}

.role-context-banner strong {
    color: var(--partner-primary);
}

/* =========================================================
   Role Switcher & Mobile Role Switcher
   Styles moved to layout-shared.css for consistency
   ========================================================= */

/* Partner-specific role badge icon colors */
.role-badge-icon.partner { background: rgba(251, 191, 36, 0.3); }
.role-badge-icon.investor { background: rgba(59, 130, 246, 0.3); }
.role-badge-icon.entrepreneur { background: rgba(34, 197, 94, 0.3); }
.role-badge-icon.originator { background: rgba(168, 85, 247, 0.3); }

/* =========================================================
   Partner Tier Badge
   ========================================================= */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tier-badge.verified {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.tier-badge.preferred {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tier-badge.elite {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* =========================================================
   Card with Blue Gradient (matching HTML)
   ========================================================= */
.card {
    background: radial-gradient(circle at top, rgba(59, 97, 177, 0.25), transparent 55%),
                var(--color-bg-panel);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.75rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =========================================================
   Stats Cards with Partner Theme
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card-partner {
    background: var(--color-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.stat-card-partner:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.stat-card-partner .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card-partner .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card-partner .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stat-card-partner .stat-change {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.stat-card-partner .stat-change.positive { color: var(--color-success); }
.stat-card-partner .stat-change.negative { color: var(--color-error); }

/* =========================================================
   Deal Cards
   ========================================================= */
.deal-card {
    background: var(--color-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.deal-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.deal-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.deal-card-body {
    padding: 1.25rem;
}

.deal-card-footer {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.deal-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.deal-status.pending-nda {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.deal-status.completed {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.deal-status.post-close {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.deal-role-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--partner-primary);
    margin-right: 0.35rem;
}

/* =========================================================
   Performance Metrics
   ========================================================= */
.metric-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.metric-bar-fill.gold { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.metric-bar-fill.green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.metric-bar-fill.blue { background: linear-gradient(90deg, #60a5fa, #3b82f6); }

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.15rem;
    color: #fbbf24;
    font-size: 1rem;
}

.rating-stars .empty { color: rgba(255, 255, 255, 0.2); }

/* =========================================================
   Earnings Card
   ========================================================= */
.earnings-card {
    background: radial-gradient(ellipse at top left, rgba(251, 191, 36, 0.15), transparent 50%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
}

.earnings-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.earnings-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.earnings-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--partner-primary);
}

.earnings-item-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* =========================================================
   Activity Timeline
   ========================================================= */
.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 22, 51, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(15, 22, 51, 0.5);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--color-text-soft);
}

/* =========================================================
   Quick Actions
   ========================================================= */
.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 22, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.quick-action-text h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.quick-action-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* =========================================================
   Layout Utilities
   ========================================================= */
.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.page-container {
    padding: 1.5rem 6vw;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-header-flex .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.muted {
    color: var(--color-text-muted);
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.1em;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--partner-primary);
    color: #1e293b;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    font-size: 0.85rem;
}

/* =========================================================
   Alert
   ========================================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--color-text-main);
}

/* =========================================================
   Mobile Responsive
   ========================================================= */
@media (max-width: 768px) {
    /* Hide desktop role switcher on mobile */
    .role-switcher {
        display: none !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .page-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .page-header-flex .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .stat-card-partner {
        padding: 1rem;
    }

    .stat-card-partner .stat-value {
        font-size: 1.5rem;
    }

    .stat-card-partner .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr !important;
    }

    .earnings-card {
        padding: 1.25rem;
    }

    .earnings-breakdown {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .earnings-item {
        padding: 0.75rem 0.5rem;
    }

    .earnings-item-value {
        font-size: 1.1rem;
    }

    .earnings-item-label {
        font-size: 0.7rem;
    }

    .deal-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr !important;
    }

    .activity-item {
        padding: 0.75rem;
    }
}
