/**
 * CCP Hero Shortcode Styles
 * Eye-catching design with glowing red accents
 */

/* Base Container */
.ccp-hero {
    --ccp-accent: #e53935;
    --ccp-accent-dark: #c62828;
    --ccp-accent-light: #ff5252;
    --ccp-accent-glow: rgba(229, 57, 53, 0.6);
    --ccp-primary: #1976d2;
    --ccp-primary-dark: #1565c0;
    --ccp-success: #00c853;
    --ccp-error: #ff1744;
    --ccp-warning: #ffab00;
    --ccp-bg: #0d1117;
    --ccp-surface: #161b22;
    --ccp-surface-elevated: #21262d;
    --ccp-text: #f0f6fc;
    --ccp-text-secondary: #8b949e;
    --ccp-border: #30363d;
    --ccp-shadow: 0 8px 24px rgba(0,0,0,0.4);
    --ccp-radius: 16px;
    --ccp-radius-sm: 10px;
    --ccp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(180deg, var(--ccp-bg) 0%, var(--ccp-surface) 100%);
    border-radius: var(--ccp-radius);
    box-shadow: var(--ccp-shadow);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--ccp-border);
}

/* Glowing accent line at top */
.ccp-hero::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--ccp-accent) 0%, var(--ccp-accent-light) 50%, var(--ccp-accent) 100%);
    box-shadow: 0 0 20px var(--ccp-accent-glow), 0 0 40px var(--ccp-accent-glow);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--ccp-accent-glow), 0 0 40px var(--ccp-accent-glow); }
    50% { opacity: 0.8; box-shadow: 0 0 30px var(--ccp-accent-glow), 0 0 60px var(--ccp-accent-glow); }
}

/* Main Game Section */
.ccp-hero__main {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 40px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.ccp-hero__main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(229, 57, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Glowing bottom border */
.ccp-hero__main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ccp-accent) 20%, var(--ccp-accent-light) 50%, var(--ccp-accent) 80%, transparent 100%);
    box-shadow: 0 0 20px var(--ccp-accent-glow), 0 0 40px var(--ccp-accent-glow);
}

.ccp-hero__game-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ccp-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ccp-hero__badge--home {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}

.ccp-hero__badge--today {
    background: linear-gradient(135deg, var(--ccp-accent) 0%, var(--ccp-accent-dark) 100%);
    color: #ffffff;
    box-shadow: 0 0 20px var(--ccp-accent-glow);
    animation: livePulse 1.5s ease-in-out infinite;
}

.ccp-hero__badge--soon {
    background: linear-gradient(135deg, var(--ccp-warning) 0%, #ff8f00 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 171, 0, 0.5);
}

@keyframes livePulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--ccp-accent-glow);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 35px var(--ccp-accent-glow), 0 0 50px var(--ccp-accent-glow);
        transform: scale(1.05);
    }
}

/* Matchup Display */
.ccp-hero__matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.ccp-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 220px;
}

.ccp-hero__team-badge {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    padding: 18px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    transition: all var(--ccp-transition);
}

.ccp-hero__team-badge:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.5));
}

.ccp-hero__team-badge--placeholder {
    background: rgba(255,255,255,0.1);
}

.ccp-hero__team-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ccp-hero__vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.ccp-hero__vs-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ccp-hero__datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ccp-hero__date {
    font-size: 16px;
    font-weight: 700;
}

.ccp-hero__time {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Actions */
.ccp-hero__actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.ccp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--ccp-transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.ccp-hero__btn--primary {
    background: linear-gradient(135deg, var(--ccp-accent) 0%, var(--ccp-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--ccp-accent-glow);
}

.ccp-hero__btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--ccp-accent-glow), 0 0 50px var(--ccp-accent-glow);
}

/* Shimmer effect on button */
.ccp-hero__btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: inherit;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ccp-hero__btn-icon {
    width: 20px;
    height: 20px;
}

/* No Game State */
.ccp-hero__no-game {
    text-align: center;
    padding: 48px;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.ccp-hero__no-game p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* Stats Grid */
.ccp-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--ccp-border);
}

.ccp-hero__card {
    background: linear-gradient(180deg, var(--ccp-surface) 0%, var(--ccp-bg) 100%);
    padding: 20px;
    transition: all var(--ccp-transition);
    position: relative;
}

.ccp-hero__card:hover {
    background: linear-gradient(180deg, var(--ccp-surface-elevated) 0%, var(--ccp-surface) 100%);
}

/* Glowing top line on hover */
.ccp-hero__card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ccp-accent) 50%, transparent 100%);
    box-shadow: 0 0 15px var(--ccp-accent-glow);
}

.ccp-hero__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ccp-accent);
}

.ccp-hero__card-header::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ccp-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ccp-accent-glow);
}

.ccp-hero__card-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.ccp-hero__card-body {
    min-height: 70px;
}

/* Standing Card */
.ccp-hero__stat-big {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.ccp-hero__stat-value {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(180deg, var(--ccp-accent) 0%, var(--ccp-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 2px 10px var(--ccp-accent-glow));
}

.ccp-hero__stat-suffix {
    font-size: 18px;
    font-weight: 700;
    color: var(--ccp-text-secondary);
}

.ccp-hero__stat-row {
    display: flex;
    gap: 16px;
}

.ccp-hero__stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: var(--ccp-surface-elevated);
    border-radius: 8px;
}

.ccp-hero__stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ccp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccp-hero__stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--ccp-text);
}

.ccp-hero__stat-item--highlight {
    border: 1px solid var(--ccp-accent);
    box-shadow: 0 0 10px var(--ccp-accent-glow);
}

.ccp-hero__stat-item--highlight .ccp-hero__stat-num {
    color: var(--ccp-accent);
}

/* Result Card */
.ccp-hero__result {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ccp-hero__result-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
}

.ccp-hero__result-badge--win {
    background: linear-gradient(135deg, var(--ccp-success) 0%, #00a844 100%);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.ccp-hero__result-badge--loss {
    background: linear-gradient(135deg, var(--ccp-error) 0%, #d50000 100%);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.ccp-hero__result-badge--draw {
    background: linear-gradient(135deg, var(--ccp-warning) 0%, #ff8f00 100%);
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.4);
}

.ccp-hero__result-score {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ccp-hero__result-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ccp-hero__result-badge-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.ccp-hero__result-team {
    font-size: 12px;
    color: var(--ccp-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.ccp-hero__result-vs {
    font-size: 22px;
    font-weight: 900;
    color: var(--ccp-text);
    flex-shrink: 0;
}

/* Player Card */
.ccp-hero__player {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ccp-hero__player-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top top;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--ccp-accent-glow);
    transition: all var(--ccp-transition);
}

.ccp-hero__card:hover .ccp-hero__player-img {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--ccp-accent-glow);
}

.ccp-hero__player-img--placeholder {
    background: linear-gradient(135deg, var(--ccp-surface) 0%, var(--ccp-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--ccp-text-secondary);
}

.ccp-hero__player-info {
    flex: 1;
    min-width: 0;
}

.ccp-hero__player-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ccp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.ccp-hero__player-stats {
    display: flex;
    gap: 12px;
}

.ccp-hero__player-stat {
    font-size: 13px;
    color: var(--ccp-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ccp-hero__player-stat b {
    font-weight: 800;
    font-size: 16px;
    color: var(--ccp-text);
}

.ccp-hero__player-stat--highlight {
    background: linear-gradient(135deg, var(--ccp-accent) 0%, var(--ccp-accent-dark) 100%);
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
}

.ccp-hero__player-stat--highlight b {
    color: #fff;
    font-size: 18px;
}

/* Compact Mode */
.ccp-hero--compact .ccp-hero__main {
    padding: 24px;
}

.ccp-hero--compact .ccp-hero__team-badge {
    width: 120px;
    height: 120px;
}

.ccp-hero--compact .ccp-hero__team-name {
    font-size: 14px;
}

.ccp-hero--compact .ccp-hero__card {
    padding: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ccp-hero__grid {
        grid-template-columns: 1fr;
    }
    
    .ccp-hero__matchup {
        gap: 20px;
    }
    
    .ccp-hero__team-badge {
        width: 80px;
        height: 80px;
    }
    
    .ccp-hero__team-name {
        font-size: 15px;
    }
    
    .ccp-hero__vs {
        padding: 0 12px;
    }
    
    .ccp-hero__vs-text {
        font-size: 22px;
    }
    
    .ccp-hero__player-img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .ccp-hero__main {
        padding: 28px 20px;
    }
    
    .ccp-hero__team-badge {
        width: 96px;
        height: 96px;
    }
    
    .ccp-hero__team-name {
        font-size: 13px;
    }
    
    .ccp-hero__btn {
        padding: 14px 24px;
        font-size: 13px;
    }
    
    .ccp-hero__stat-value {
        font-size: 36px;
    }
    
    .ccp-hero__player-img {
        width: 80px;
        height: 80px;
    }
}
