/* ==========================================================================
   Now Playing Compact Cards
   FL!PT branded, image-background style with overlaid info pills
   ========================================================================== */

/* ============================================
   CSS Variables
   ============================================ */
.now-playing-compact {
    --np-radius: 1rem;
    --np-radius-sm: 0.5rem;
    --np-radius-pill: 2rem;

    --np-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    --np-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.25);
    --np-shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.3);

    --np-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* FL!PT Brand Colors */
    --np-primary: #00A69C;
    --np-primary-hover: #00857A;
    --np-secondary: #0068BA;
    --np-coral: #FF6B6B;
    --np-amber: #FFB347;
    --np-dark: #404041;

    /* Overlay colors */
    --np-overlay-dark: rgba(0, 0, 0, 0.6);
    --np-overlay-gradient: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );

    /* Glass effect */
    --np-glass: rgba(255, 255, 255, 0.1);
    --np-glass-border: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Section Container
   ============================================ */
.now-playing-compact {
    padding: 1.5rem 0;
}

.now-playing-compact .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.now-playing-compact .section-header h2 {
    font-family: 'Karla', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--np-dark);
}

.now-playing-compact .section-header p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

/* Dark mode header */
[data-bs-theme="dark"] .now-playing-compact .section-header h2 {
    color: #ffffff;
}

[data-bs-theme="dark"] .now-playing-compact .section-header p {
    color: #9ca3af;
}

/* ============================================
   Card Grid
   ============================================ */
.np-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .np-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 1.5rem;
    }
}

/* ============================================
   Card Base
   ============================================ */
.np-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.np-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-hover);
}

/* ============================================
   Hero Section (Image Background)
   ============================================ */
.np-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    width: 100%;
    max-height: 280px;
    background: #1a1a1a;
}

.np-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.np-card:hover .np-hero-image {
    transform: scale(1.05);
}

/* Gradient overlay */
.np-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--np-overlay-gradient);
    pointer-events: none;
}

/* ============================================
   Hero Top Row (League Badge, PDGA, Week)
   ============================================ */
.np-hero-top {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* League Badge (now a link) */
.np-league-badge {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: var(--np-radius-sm);
    overflow: hidden;
    box-shadow: var(--np-shadow-pill);
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: #fff;
    transition: var(--np-transition);
    flex-shrink: 0;
    text-decoration: none;
}

.np-league-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-league-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* PDGA Code Badge - Bottom right, 25% smaller */
@keyframes pdga-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 2px 1px rgba(255, 215, 0, 1),
            0 0 3px 1px rgba(255, 215, 0, 0.9),
            0 0 4px 2px rgba(255, 215, 0, 0.7),
            0 0 5px 2px rgba(255, 215, 0, 0.5),
            0 0 0 1px #ffd700,
            var(--np-shadow-pill);
    }
    50% {
        box-shadow:
            0 0 2px 1px rgba(255, 215, 0, 1),
            0 0 3px 2px rgba(255, 215, 0, 0.9),
            0 0 5px 3px rgba(255, 215, 0, 0.7),
            0 0 6px 3px rgba(255, 215, 0, 0.5),
            0 0 0 1px #fff5b0,
            var(--np-shadow-pill);
    }
}

.np-pdga-badge {
    position: absolute !important;
    bottom: 1rem !important;
    right: 0.75rem !important;
    top: auto !important;
    left: auto !important;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #0068BA;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: var(--np-radius-pill);
    box-shadow:
        0 0 2px 1px rgba(255, 215, 0, 1),
        0 0 3px 1px rgba(255, 215, 0, 0.9),
        0 0 4px 2px rgba(255, 215, 0, 0.7),
        0 0 5px 2px rgba(255, 215, 0, 0.5),
        0 0 0 1px #ffd700,
        var(--np-shadow-pill);
    text-decoration: none;
    animation: pdga-glow-pulse 6s ease-in-out infinite;
}

.np-pdga-badge:hover {
    background: #0052a3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 2px #d4af37,
        0 0 12px rgba(212, 175, 55, 0.5);
}

.np-pdga-badge-icon {
    height: 12px;
    width: auto;
    filter: brightness(0) invert(1);
}

.np-pdga-label {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.np-pdga-badge code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

/* Dark mode - ensure readability */
[data-bs-theme="dark"] .np-pdga-badge {
    background: #0077cc;
    color: #fff;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 0 1.5px #ffd700,
        0 0 10px rgba(255, 215, 0, 0.5);
}

[data-bs-theme="dark"] .np-pdga-badge:hover {
    background: #0088e0;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 0 2px #ffd700,
        0 0 14px rgba(255, 215, 0, 0.6);
}

[data-bs-theme="dark"] .np-pdga-badge code {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* PDGA Badge in content flow - desktop: full width above actions, mobile: centered */
.np-pdga-badge--content {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0.75rem 0;
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.np-pdga-badge--content .np-pdga-badge-icon {
    height: 16px;
}

.np-pdga-badge--content .np-pdga-label {
    font-size: 0.8rem;
}

.np-pdga-badge--content code {
    font-size: 0.85rem;
    padding: 0.15rem 0.5rem;
}

/* Hide hero badge on desktop */
@media (min-width: 768px) {
    .np-hero .np-pdga-badge {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Hide hero badge on mobile */
    .np-hero .np-pdga-badge {
        display: none !important;
    }

    /* Mobile: centered, not full width */
    .np-pdga-badge--content {
        width: fit-content;
        margin: 1rem auto 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .np-pdga-badge--content .np-pdga-badge-icon {
        height: 18px;
    }

    .np-pdga-badge--content code {
        font-size: 0.9rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Week Badge */
.np-week-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--np-primary);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--np-radius-sm);
    box-shadow: var(--np-shadow-pill);
    flex-shrink: 0;
}

.np-week-badge .week-num {
    font-size: 1rem;
}

/* ============================================
   Info Pills (Bottom of Hero)
   ============================================ */
.np-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.np-event-name {
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.np-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.np-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--np-radius-pill);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.np-pill i {
    font-size: 0.7rem;
    opacity: 0.85;
}

.np-pill--highlight {
    background: var(--np-primary);
    border-color: var(--np-primary);
}

.np-pill--today {
    background: var(--np-coral);
    border-color: var(--np-coral);
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ============================================
   Buy-ins Overlay (in hero)
   ============================================ */
.np-buyins-overlay {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

/* Buy-in pills in overlay need glass effect */
.np-buyins-overlay .np-buyin-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.np-buyins-overlay .np-buyin-pill i {
    font-size: 0.6rem;
}

/* Active pill - green tint */
.np-buyins-overlay .np-buyin-pill--active {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.5);
    color: #d1fae5;
}

.np-buyins-overlay .np-buyin-pill--active i {
    color: #6ee7b7;
}

/* Inactive pill - red tint */
.np-buyins-overlay .np-buyin-pill--inactive {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.np-buyins-overlay .np-buyin-pill--inactive i {
    color: #f87171;
    font-size: 0.7rem;
}

/* Super Ace pill - gold tint */
.np-buyins-overlay .np-buyin-pill--superace {
    background: rgba(251, 191, 36, 0.35);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fef3c7;
}

.np-buyins-overlay .np-buyin-pill--superace i {
    color: #fcd34d;
}

/* ============================================
   Content Section
   ============================================ */
.np-content {
    padding: 1rem;
    background: #fff;
}

[data-bs-theme="dark"] .np-content {
    background: #1f2937;
}

/* ============================================
   Quick Stats Row
   ============================================ */
.np-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.np-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    background: #f3f4f6;
    border-radius: var(--np-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--np-dark);
}

[data-bs-theme="dark"] .np-stat {
    background: #374151;
    color: #e5e7eb;
}

.np-stat i {
    color: var(--np-primary);
    font-size: 0.75rem;
}

.np-stat--ace {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.np-stat--ace i {
    color: #d97706;
}

.np-stat--skins {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.np-stat--skins i {
    color: #059669;
}

[data-bs-theme="dark"] .np-stat--ace {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fef3c7;
}

[data-bs-theme="dark"] .np-stat--skins {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #d1fae5;
}

/* ============================================
   Your Buy-ins Section
   ============================================ */
.np-buyins {
    margin-bottom: 1rem;
}

.np-buyins-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .np-buyins-label {
    color: #9ca3af;
}

.np-buyins-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Buy-in pill base */
.np-buyin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--np-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--np-transition);
}

/* Active/opted-in pill */
.np-buyin-pill--active {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.np-buyin-pill--active i {
    color: #059669;
}

[data-bs-theme="dark"] .np-buyin-pill--active {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #d1fae5;
}

[data-bs-theme="dark"] .np-buyin-pill--active i {
    color: #34d399;
}

/* Inactive/not opted-in pill */
.np-buyin-pill--inactive {
    background: #f3f4f6;
    color: #9ca3af;
}

.np-buyin-pill--inactive i {
    color: #d1d5db;
}

[data-bs-theme="dark"] .np-buyin-pill--inactive {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

[data-bs-theme="dark"] .np-buyin-pill--inactive i {
    color: #f87171;
}

/* Special styling for Super Ace pill */
.np-buyin-pill--superace {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.np-buyin-pill--superace i {
    color: #d97706;
}

[data-bs-theme="dark"] .np-buyin-pill--superace {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fef3c7;
}

[data-bs-theme="dark"] .np-buyin-pill--superace i {
    color: #fbbf24;
}

/* Buy-in value (e.g., ace pot amount) */
.np-buyin-value {
    font-weight: 700;
    margin-left: 0.15rem;
}

/* Super Ace hole number */
.np-buyin-hole {
    font-weight: 700;
    margin-left: 0.15rem;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .np-buyin-hole {
    border-left-color: rgba(255, 255, 255, 0.2);
}

/* PDGA Access Code Pill */
.np-buyin-pill--pdga {
    background: #0068BA;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.np-buyin-pill--pdga:hover {
    background: #0052a3;
    color: #ffffff;
    text-decoration: none;
}

.np-buyin-pill--pdga .np-pdga-icon {
    height: 14px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

.np-buyin-pill--pdga code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

[data-bs-theme="dark"] .np-buyin-pill--pdga {
    background: #0068BA;
}

[data-bs-theme="dark"] .np-buyin-pill--pdga:hover {
    background: #0077cc;
}

/* Hand of Cards - Now uses shared component stylesheet: /css/components/hand-of-cards.css */

/* ============================================
   Action Buttons
   ============================================ */
.np-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.np-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--np-radius-sm);
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--np-transition);
    text-decoration: none;
}

.np-btn i {
    font-size: 0.8rem;
}

.np-btn--primary {
    background: var(--np-primary);
    color: #fff;
}

.np-btn--primary:hover {
    background: var(--np-primary-hover);
    transform: translateY(-1px);
}

.np-btn--secondary {
    background: #f3f4f6;
    color: var(--np-dark);
}

.np-btn--secondary:hover {
    background: #e5e7eb;
}

[data-bs-theme="dark"] .np-btn--secondary {
    background: #374151;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .np-btn--secondary:hover {
    background: #4b5563;
}

.np-btn--outline {
    background: transparent;
    border: 2px solid var(--np-primary);
    color: var(--np-primary);
}

.np-btn--outline:hover {
    background: var(--np-primary);
    color: #fff;
}


/* ============================================
   Expandable Details (Collapsible)
   ============================================ */
.np-details-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.75rem;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: var(--np-radius-sm);
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--np-transition);
}

.np-details-toggle:hover {
    border-color: var(--np-primary);
    color: var(--np-primary);
    background: rgba(0, 166, 156, 0.05);
}

.np-details-toggle i {
    transition: transform 0.3s ease;
}

.np-details-toggle.expanded i {
    transform: rotate(180deg);
}

[data-bs-theme="dark"] .np-details-toggle {
    border-color: #4b5563;
    color: #9ca3af;
}

[data-bs-theme="dark"] .np-details-toggle:hover {
    border-color: var(--np-primary);
    color: var(--np-primary);
    background: rgba(0, 166, 156, 0.1);
}

.np-details-panel {
    display: none;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.np-details-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-bs-theme="dark"] .np-details-panel {
    border-color: #374151;
}

/* Details grid */
.np-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.np-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.np-detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.np-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--np-dark);
}

[data-bs-theme="dark"] .np-detail-label {
    color: #9ca3af;
}

[data-bs-theme="dark"] .np-detail-value {
    color: #e5e7eb;
}

/* PDGA Code special styling */
.np-pdga-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-pdga-code code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--np-primary);
}

[data-bs-theme="dark"] .np-pdga-code code {
    background: #374151;
}

.np-pdga-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--np-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--np-transition);
}

.np-pdga-link:hover {
    background: var(--np-primary-hover);
    color: #fff;
}

.np-pdga-link img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* ============================================
   Skins & Challenge Modules Row
   ============================================ */
.np-modules-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   Skins Module Region
   ============================================ */
.np-skins-region {
    /* margin removed - now handled by .np-modules-row */
}

/* ============================================
   Progressive Round Summary
   ============================================ */
.np-round-summary {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: var(--np-radius-sm);
    border: 1px solid #93c5fd;
}

[data-bs-theme="dark"] .np-round-summary {
    background: linear-gradient(135deg, #1e3a5f, #1e40af);
    border-color: #3b82f6;
}

/* ============================================
   Empty State
   ============================================ */
.np-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.np-empty-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.np-empty h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--np-dark);
    margin-bottom: 0.5rem;
}

.np-empty p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .np-empty-icon {
    color: #4b5563;
}

[data-bs-theme="dark"] .np-empty h3 {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .np-empty p {
    color: #9ca3af;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 480px) {
    .np-hero {
        aspect-ratio: 4 / 3;
    }

    .np-event-name {
        font-size: 1.1rem;
    }

    .np-pills {
        gap: 0.3rem;
    }

    .np-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .np-stats {
        flex-wrap: wrap;
    }

    .np-stat {
        flex: 1 1 45%;
    }

    .np-actions {
        flex-direction: column;
    }

    .np-btn {
        width: 100%;
    }

    .np-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Loading State
   ============================================ */
.np-card--loading {
    pointer-events: none;
}

.np-card--loading .np-hero-image {
    filter: blur(2px);
}

.np-card--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

[data-bs-theme="dark"] .np-card--loading::after {
    background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   Invite Friends Modal
   ============================================ */
.invite-friends-modal .invite-modal-header {
    background: linear-gradient(135deg, var(--np-primary, #00A69C), var(--np-secondary, #0068BA));
    color: #fff;
}

.invite-friends-modal .modal-title {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
}

.invite-friends-modal .share-link-btn {
    background: var(--np-primary, #00A69C);
    border-color: var(--np-primary, #00A69C);
}

.invite-friends-modal .share-link-btn:hover {
    background: var(--np-primary-hover, #00857A);
    border-color: var(--np-primary-hover, #00857A);
}

.invite-friends-modal .btn-theme-outline {
    border: 2px solid var(--np-primary, #00A69C);
    color: var(--np-primary, #00A69C);
    background: transparent;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.invite-friends-modal .btn-theme-outline:hover {
    background: var(--np-primary, #00A69C);
    color: #fff;
}

[data-bs-theme="dark"] .invite-friends-modal .modal-content {
    background: #1f2937;
}

[data-bs-theme="dark"] .invite-friends-modal .modal-body {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .invite-friends-modal .input-group-text {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

[data-bs-theme="dark"] .invite-friends-modal .form-control {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .invite-friends-modal .modal-footer {
    border-color: #374151;
}

/* Dark mode overrides migrated from darktheme.css */
[data-bs-theme="dark"] .now-playing-section {
    background: var(--theme-surface-2, var(--theme-surface-1, #111827));
    --ctp-bg: rgba(0, 0, 0, 0.35);
    --ctp-border: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .pdga-logo-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .detail-item {
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .status-item {
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .status-item.active {
    background: rgba(255, 255, 255, 0.18);
}

[data-bs-theme="dark"] .status-item .prize-amount {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] .participation-status {
    background: rgba(0, 0, 0, 0.4);
}

/* Source: wwwroot/css/now-playing.css */
[data-bs-theme="dark"] .ctp-module {
    background: rgba(255, 255, 255, 0.85);
    color: #222;
}

[data-bs-theme="dark"] .current-ctp-holder,
[data-bs-theme="dark"] .ctp-description {
    background: rgba(255, 255, 255, 0.65);
}

/* Source: wwwroot/css/now-playing.css */
[data-bs-theme="dark"] .card-players-section {
    background-color: rgba(30, 30, 30, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .card-player-item {
    background-color: rgba(40, 40, 40, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .card-player-item.current-player {
    background-color: rgba(50, 50, 50, 0.9);
    border-color: rgba(74, 144, 226, 0.7);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

[data-bs-theme="dark"] .player-initials {
    background-color: #2d5a8e;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .player-rating {
    background-color: rgba(74, 144, 226, 0.25);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(74, 144, 226, 0.5);
}

[data-bs-theme="dark"] .player-initials.empty {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.4), rgba(120, 120, 120, 0.5));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .card-player-item.empty-slot {
    background-color: rgba(40, 40, 40, 0.7);
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .card-player-item.empty-slot:hover {
    background-color: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .player-name {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .doubles-team-info {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .doubles-team-info.warning {
    background-color: rgba(255, 152, 0, 0.1);
}

[data-bs-theme="dark"] .doubles-team-info .team-name {
    background-color: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

[data-bs-theme="dark"] .team-name-header {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .card-player-item.team-player {
    background-color: rgba(40, 40, 40, 0.6) !important;
}

