/* Partner Deals Page Styles - Matching HTML Reference */

/* 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);
}

/* ===== PAGE CONTAINER ===== */
.partner-deals-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.partner-deals-page .page-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header .hero-title {
    margin-bottom: 0.5rem;
}

/* .page-header centers its text on mobile; a block box with fit-content width
   keeps the back button pinned left while the title stays centered. */
.page-header .nea-back-btn {
    display: flex;
    width: fit-content;
}

/* ===== RESPONSIVE VISIBILITY HELPERS ===== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ===== REQUEST CARD ===== */
.request-card {
    background: radial-gradient(ellipse at top left, rgba(251, 191, 36, 0.15), transparent 50%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.request-meta {
    text-align: right;
}

.request-badge {
    background: var(--partner-primary);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.request-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.request-info-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.request-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-info-label {
    font-size: 0.8rem;
    color: var(--color-text-muted, #9ca3af);
}

.request-info-value {
    font-weight: 600;
}

.request-info-value.gold {
    color: var(--partner-primary);
}

.request-btn-row {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 600;
}

/* ===== FILTER TABS (Desktop) ===== */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tab {
    padding: 0.6rem 1.25rem;
    background: rgba(15, 22, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--color-text-main, #e5e7eb);
}

.filter-tab.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--partner-primary);
    color: var(--partner-primary);
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.filter-tab.active .count {
    background: rgba(251, 191, 36, 0.3);
}

/* ===== MOBILE FILTER ACCORDIONS ===== */
.mobile-filter-accordions {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-accordion {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.filter-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(15, 22, 51, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-accordion-header:hover {
    background: rgba(15, 22, 51, 0.8);
}

.filter-accordion-header.active {
    background: rgba(251, 191, 36, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-accordion-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.filter-accordion-count {
    background: rgba(251, 191, 36, 0.2);
    color: var(--partner-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-accordion-arrow {
    transition: transform 0.3s ease;
    color: var(--color-text-muted, #9ca3af);
}

.filter-accordion-header.active .filter-accordion-arrow {
    transform: rotate(180deg);
}

.filter-accordion-content {
    padding: 1rem;
    background: var(--color-bg-panel, rgba(15, 23, 42, 0.8));
}

/* ===== DEAL CARDS ===== */
.deal-card {
    background: var(--color-bg-panel, rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

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

.deal-card.pending-nda {
    border-left: 4px solid #fbbf24;
}

.deal-card.active {
    border-left: 4px solid #22c55e;
}

.deal-card.post-close {
    border-left: 4px solid #a855f7;
}

.deal-card.completed {
    border-left: 4px solid #60a5fa;
}

.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;
    gap: 1rem;
}

.deal-header-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.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;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.deal-footer-buttons {
    display: flex;
    gap: 0.5rem;
}

.deal-footer-buttons .btn {
    white-space: nowrap;
}

/* Deal Status Badges */
.deal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

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

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

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

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

/* Role Tags */
.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;
    margin-bottom: 0.35rem;
}

/* Deal Info Grid */
.deal-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.deal-info-item {
    padding: 0.75rem;
    background: rgba(15, 22, 51, 0.4);
    border-radius: 8px;
}

.deal-info-label {
    font-size: 0.75rem;
    color: var(--color-text-muted, #9ca3af);
    margin-bottom: 0.25rem;
}

.deal-info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.deal-info-value.gold {
    color: var(--partner-primary);
}

/* NDA Status Banner */
.nda-banner {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nda-banner.pending {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.nda-banner.signed {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

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

.nda-banner.pending .nda-icon {
    background: rgba(251, 191, 36, 0.2);
}

.nda-banner.signed .nda-icon {
    background: rgba(34, 197, 94, 0.2);
}

.nda-content {
    flex: 1;
}

/* Visibility Indicator */
.visibility-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 22, 51, 0.6);
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.visibility-indicator.limited {
    color: #fbbf24;
}

.visibility-indicator.full {
    color: #22c55e;
}

/* ===== MOBILE RESPONSIVE - 768px and below ===== */
@media (max-width: 768px) {
    /* Visibility toggles */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Page container */
    .partner-deals-page .page-container {
        padding: 0 4vw;
    }

    /* Page header */
    .page-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

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

    /* Request card */
    .request-card {
        padding: 1.25rem;
    }

    .request-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .request-meta {
        text-align: left;
    }

    .request-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .request-info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .request-info-item {
        justify-content: space-between;
    }

    .request-btn-row {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .request-btn-row .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile accordions visible */
    .mobile-filter-accordions {
        display: flex !important;
    }

    /* Deal cards */
    .deal-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .deal-header-badges {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

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

    .deal-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .deal-footer-buttons {
        width: 100%;
        display: flex;
    }

    .deal-footer-buttons .btn,
    .deal-card-footer > .btn {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    /* Deal info grid - 2 columns */
    .deal-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* NDA banner */
    .nda-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .nda-content {
        text-align: center;
    }

    .nda-banner .btn {
        width: 100%;
    }
}

/* ===== EXTRA SMALL DEVICES - 480px and below ===== */
@media (max-width: 480px) {
    .partner-deals-page .page-container {
        padding: 0 3vw;
    }

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

    .request-card {
        padding: 1rem;
    }

    .filter-accordion-header {
        padding: 0.875rem 1rem;
    }

    .filter-accordion-content {
        padding: 0.75rem;
    }

    .deal-info-grid {
        gap: 0.5rem;
    }

    .deal-info-item {
        padding: 0.625rem;
    }

    .deal-info-label {
        font-size: 0.65rem;
    }

    .deal-info-value {
        font-size: 0.85rem;
    }
}
