/* ============================================
   Super Ace Index Page Styles
   ============================================ */

/* Winner Showcase Styles */
.super-ace-winners-showcase {
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.winner-showcase-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--theme-bg-primary, #fff);
    aspect-ratio: 1200 / 630;
}

.winner-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.winner-og-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.winner-og-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.og-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    color: rgba(255, 255, 255, 0.7);
}

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

.winner-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.winner-showcase-card:hover .winner-hover-effect {
    opacity: 1;
}

/* Super Ace Amount Cards */
.super-ace-amount-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.super-ace-amount-card:hover {
    transform: translateY(-5px);
}

/* Next Ace Opportunity Section - Base Styles */
.next-ace-opportunity {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Next Ace Opportunity - Card Header */
.next-ace-opportunity__header {
    background-color: var(--theme-info, #3b82f6);
    color: var(--theme-text-primary, white);
    padding: 1rem 1.5rem;
}

/* Next Ace Opportunity - Card Body */
.next-ace-opportunity__body {
    background-color: color-mix(in srgb, var(--theme-info, #3b82f6) 3%, transparent);
}

/* Next Ace Opportunity - League Logo Container */
.next-ace-opportunity__league-logo {
    width: 60px;
    height: 34px;
    overflow: hidden;
    margin-right: 12px;
    border-radius: 4px;
}

.next-ace-opportunity__league-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Next Ace Opportunity - League Name */
.next-ace-opportunity__league-name {
    color: var(--theme-info, #3b82f6);
}

/* Next Ace Opportunity - Event Image Container */
.next-ace-opportunity__event-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
}

.next-ace-opportunity__event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Next Ace Opportunity - Info Badges */
.next-ace-opportunity__badge {
    background-color: var(--theme-surface-2, #f8f9fa);
    color: var(--theme-text-primary, #212529);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.125));
    font-weight: 500;
}

/* Next Ace Opportunity - Alert Box */
.next-ace-opportunity__alert {
    background-color: color-mix(in srgb, var(--theme-info, #3b82f6) 10%, transparent);
    border: none;
    border-left: 3px solid var(--theme-info, #3b82f6);
}

.next-ace-opportunity__alert-icon {
    color: var(--theme-info, #3b82f6);
}

.next-ace-opportunity__alert-title {
    color: var(--theme-info, #3b82f6);
    font-weight: bold;
}

/* Next Ace Opportunity - Register Button */
.next-ace-opportunity__register-btn {
    font-weight: 500;
    border: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
}

/* Force color inheritance for button text and icons */
.next-ace-opportunity__register-btn,
.next-ace-opportunity__register-btn:hover,
.next-ace-opportunity__register-btn:focus,
.next-ace-opportunity__register-btn:visited,
.next-ace-opportunity__register-btn:active {
    color: inherit !important;
}

.next-ace-opportunity__register-btn i {
    color: inherit !important;
}

.next-ace-opportunity__register-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Pot Hierarchy Styles */
.pot-hierarchy {
    position: relative;
    padding: 20px 0;
}

.main-pot {
    border-radius: 12px;
    position: relative;
    z-index: 2;
    border-left: 5px solid var(--theme-info, #2563eb);
    background-color: color-mix(in srgb, var(--theme-info, #2563eb) 5%, transparent);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--theme-info, #2563eb) 15%, transparent);
}

.pot-connector {
    width: 4px;
    height: 50px;
    background-color: var(--theme-info, #2563eb);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-info, #2563eb) 20%, transparent);
}

.child-pots {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.child-pot {
    border-radius: 12px;
    border-left: 5px solid #3b82f6;
    transition: all 0.3s ease;
    background-color: color-mix(in srgb, #3b82f6 5%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, #3b82f6 10%, transparent);
}

.child-pot:hover {
    transform: translateY(-5px);
}

.pot-icon {
    width: 48px;
    height: 48px;
    background-color: var(--theme-info, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--theme-info, #2563eb) 30%, transparent);
}

.child-pot-icon {
    background-color: #3b82f6;
}

.pot-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-info, #2563eb);
    text-shadow: 0 1px 2px color-mix(in srgb, var(--theme-info, #2563eb) 20%, transparent);
}

/* Champion Card Styles */
.champion-avatar {
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.champion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials-avatar {
    width: 100%;
    height: 100%;
    background-color: var(--theme-info, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
}

.prize-badge {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}

.champion-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.champion-card:hover {
    transform: translateY(-5px);
}

.ace-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Source/Destination Badge */
.source-destination-badge {
    background-color: var(--theme-surface-2, #f8f9fa);
    color: var(--theme-text-primary, #212529);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
}

/* ============================================
   Dark Theme Overrides
   ============================================ */

[data-bs-theme="dark"] .next-ace-opportunity__header {
    background-color: var(--theme-surface-2, #334155);
    border-bottom: 1px solid var(--theme-border-color, rgba(255, 255, 255, 0.1));
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .next-ace-opportunity__body {
    background-color: var(--theme-surface-1, #1e293b);
}

[data-bs-theme="dark"] .next-ace-opportunity__league-name {
    color: var(--theme-info, #3b82f6);
}

[data-bs-theme="dark"] .next-ace-opportunity__badge {
    background-color: var(--theme-surface-3, #475569);
    color: var(--theme-text-primary, #e2e8f0);
    border-color: var(--theme-border-color, rgba(255, 255, 255, 0.1));
}

[data-bs-theme="dark"] .next-ace-opportunity__alert {
    background-color: color-mix(in srgb, var(--theme-info, #3b82f6) 15%, transparent);
    border-left-color: var(--theme-info, #3b82f6);
}

[data-bs-theme="dark"] .next-ace-opportunity__alert-icon {
    color: var(--theme-info, #3b82f6);
}

[data-bs-theme="dark"] .next-ace-opportunity__alert-title {
    color: color-mix(in srgb, var(--theme-info, #3b82f6) 90%, white);
}

[data-bs-theme="dark"] .pot-icon {
    background-color: var(--theme-info, #2563eb);
}

[data-bs-theme="dark"] .child-pot-icon {
    background-color: #3b82f6;
}

[data-bs-theme="dark"] .pot-connector {
    background-color: var(--theme-info, #2563eb);
}

[data-bs-theme="dark"] .main-pot {
    border-left-color: var(--theme-info, #2563eb);
}

[data-bs-theme="dark"] .child-pot {
    border-left-color: #3b82f6;
}

[data-bs-theme="dark"] .pot-amount {
    color: #60a5fa;
}

[data-bs-theme="dark"] .initials-avatar {
    background-color: var(--theme-info, #2563eb);
}
