/* assets/css/mstp-sponsor.css */
/* ==========================================================================
   SPONSOR PORTAL STYLESHEET
   VERSION: 214.0 (Restored Impact Styles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED WRAPPERS & HERO
   -------------------------------------------------------------------------- */
.mstp-sponsor-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    color: var(--mstp-text-main, #111827);
}

.mstp-sponsor-wrapper * {
    box-sizing: border-box;
}

/* Storytelling Hero */
.mstp-sh-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    background: var(--mstp-card-bg, #fff);
    border-radius: 12px;
    border: 1px solid var(--mstp-card-border, #e5e7eb);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.mstp-sh-hero h2 {
    font-size: 3rem;
    margin: 0 0 20px 0;
    color: var(--mstp-text-main, #111827);
    line-height: 1.1;
    font-weight: 800;
}

.mstp-sh-hero p {
    font-size: 1.2rem;
    color: var(--mstp-text-muted, #6b7280);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* [FIX] Main Directory Impact Cards */
.mstp-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-item {
    background: var(--mstp-nested-bg, #f9fafb);
    border: 1px solid var(--mstp-card-border, #e5e7eb);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Stronger shadow */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Top Accent Line */
.hero-stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--mstp-accent, #3b82f6);
    opacity: 1;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--mstp-accent, #3b82f6);
    background: var(--mstp-card-bg, #fff);
}

.hero-stat-item strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--mstp-text-main, #111827);
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-stat-item span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--mstp-text-muted, #6b7280);
}

.hero-stat-divider { display: none; }

/* Filter Bar (Square Buttons) */
.mstp-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.mstp-filter-btn {
    background: transparent;
    border: 1px solid var(--mstp-card-border, #d1d5db);
    color: var(--mstp-text-muted, #6b7280);
    padding: 10px 24px;
    border-radius: 4px; /* Square */
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
}

.mstp-filter-btn:hover,
.mstp-filter-btn.active {
    background: var(--mstp-accent, #3b82f6);
    color: #fff;
    border-color: var(--mstp-accent, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* --------------------------------------------------------------------------
   2. DIRECTORY GRID (MODERN / DARK)
   -------------------------------------------------------------------------- */
.mstp-sponsor-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.sponsor-card-modern {
    background: var(--mstp-card-bg, #1e1e1e); /* Dark */
    border: 1px solid var(--mstp-card-border, #333);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sponsor-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--mstp-accent, #3b82f6);
}

/* Card Header */
.sp-card-header {
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

/* Logo Circle */
.sp-logo-circle {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: none;
}

.sp-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.sp-logo-circle.text-logo {
    background: var(--mstp-accent, #3b82f6);
    color: #fff;
    font-weight: 900;
    font-size: 32px;
}

/* Card Body */
.sp-card-body {
    padding: 60px 25px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sp-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mstp-text-main, #fff);
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-family: var(--mstp-font);
}

.sp-tagline {
    font-size: 0.95rem;
    color: var(--mstp-text-muted, #aaa);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
    font-style: normal;
}

.sp-impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0;
    width: fit-content;
}

/* Card Footer */
.sp-card-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.sp-btn {
    text-decoration: none;
    color: var(--mstp-text-main, #fff);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.sp-btn:hover {
    color: var(--mstp-accent, #3b82f6);
}

.sp-btn-primary {
    background: var(--mstp-accent, #3b82f6);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: none;
}

.sp-btn-primary:hover {
    background: var(--mstp-accent-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.sp-mobile-arrow { display: none; }

/* --------------------------------------------------------------------------
   3. SINGLE PROFILE (MODERN / DARK)
   -------------------------------------------------------------------------- */
.sp-single-wrapper {
    padding-bottom: 100px;
}

.sp-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--mstp-text-muted, #aaa);
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Flow Visibility */
.sp-mobile-section { display: none; } /* Hidden on Desktop */
.sp-right-col { display: block; } /* Visible on Desktop */

.sp-desktop-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.sp-header-section {
    margin-bottom: 30px;
}

.sp-single-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.sp-single-logo.text-logo {
    background: var(--mstp-accent, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
}

.sp-single-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: var(--mstp-text-main, #fff);
    font-family: var(--mstp-font);
}

.sp-single-tagline {
    font-size: 1.2rem;
    color: var(--mstp-text-muted, #aaa);
    margin-bottom: 30px;
}

.sp-bio-card {
    padding: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--mstp-text-muted, #aaa);
    background: var(--mstp-card-bg, #1e1e1e);
    border: 1px solid var(--mstp-card-border, #333);
    border-radius: 12px;
}

.sp-map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--mstp-card-border, #333);
}

.sp-contact-row {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* Sticky Deal Card (Modern Dark) */
.sp-deal-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
    top: 40px;
}

.sp-deal-label {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.sp-deal-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 700;
}

.sp-deal-instructions {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Accessibility Updates for Action Button */
.sp-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--mstp-accent,#c084fc) !important;
    color: #1e3a8a;
    font-weight: 900;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}

.sp-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff !important;
    background: var(--mstp-success,#000) !important;
}

/* [FIX] Single Profile Impact Stats (The Missing Styles) */
.sp-impact-card {
    margin-top: 30px;
    padding: 25px;
    border-left: 4px solid var(--mstp-success, #10b981);
    background: var(--mstp-card-bg, #1e1e1e);
    border: 1px solid var(--mstp-card-border, #333);
    border-radius: 12px;
}

.sp-impact-card h4 {
    margin: 0 0 20px 0;
    color: var(--mstp-text-main, #fff);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.sp-impact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sp-impact-item:last-child { border-bottom: none; padding-bottom: 0; }

.sp-impact-item strong {
    font-size: 1.3rem;
    color: var(--mstp-success, #10b981);
    font-weight: 900;
}

.sp-impact-item span {
    font-size: 0.9rem;
    color: var(--mstp-text-muted, #aaa);
    text-transform: uppercase;
    font-weight: 600;
}

/* Zero State */
.sp-impact-zero {
    text-align: center;
    padding: 20px;
    color: var(--mstp-text-muted, #aaa);
}
.sp-impact-zero p { margin: 10px 0 0 0; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   4. DASHBOARD LAYOUT
   -------------------------------------------------------------------------- */
.mstp-dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1000px) {
    .mstp-dash-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   5. MOBILE RESPONSIVE OVERRIDES (APP STYLE LIST)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    
    /* Grid -> List View */
    .mstp-sponsor-grid-modern {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .sponsor-card-modern {
        flex-direction: row;
        align-items: center;
        height: auto;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .sponsor-card-modern:hover {
        transform: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .sp-card-header { display: none; }

    .sp-logo-circle {
        position: static;
        width: 60px;
        height: 60px;
        margin-right: 15px;
        box-shadow: none;
        border: 1px solid var(--mstp-card-border, #333);
        padding: 4px;
        transform: none;
        border-radius: 10px;
    }
    
    .sp-logo-circle.text-logo { font-size: 24px; }

    .sp-card-body {
        padding: 0;
        display: block;
        text-align: left;
        flex: 1;
    }

    .sp-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
        font-family: var(--mstp-font);
    }

    .sp-tagline {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .sp-impact-badge { display: none; }
    .sp-card-footer { display: none; }

    .sp-mobile-arrow {
        display: block;
        margin-left: 10px;
        color: var(--mstp-text-muted, #9ca3af);
        font-size: 1.5rem;
        font-weight: 300;
    }

    /* Single Profile Mobile */
    .sp-desktop-grid { display: block; }
    
    /* Mobile Flow Visibility */
    .sp-mobile-section { display: block; margin-bottom: 30px; }
    .sp-right-col { display: none; } /* Hide desktop sidebar */
    .sp-left-col { display: block; }
    
    /* Adjust Deal Card for Mobile Flow */
    .sp-deal-card {
        position: static; /* No sticky on mobile inline */
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Adjust Contact Row */
    .sp-contact-row {
        margin-top: 0;
        margin-bottom: 20px;
        justify-content: stretch;
    }
    .sp-contact-row .mstp-btn-edit { flex: 1; justify-content: center; }

    .sp-single-title { font-size: 2.2rem; }
    .sp-single-logo { width: 80px; height: 80px; margin-bottom: 15px; margin-left: auto; margin-right: auto; }
    .sp-header-section { text-align: center; margin-bottom: 30px; }
    .sp-map-container { height: 250px; }

    /* Mobile Sticky Footer (Removed) */
    .sp-mobile-footer { display: none !important; }
}