/**
 * WP Live Cricket Score - Premium Dark Mode Premium Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@500;700&display=swap');

.wplcs-container {
    --wplcs-bg: #12141d;
    --wplcs-card-bg: rgba(26, 29, 41, 0.7);
    --wplcs-card-border: rgba(255, 255, 255, 0.08);
    --wplcs-text-primary: #ffffff;
    --wplcs-text-secondary: #94a3b8;
    --wplcs-accent: #3b82f6;
    --wplcs-accent-glow: rgba(59, 130, 246, 0.5);
    --wplcs-danger: #ef4444;
    --wplcs-success: #10b981;
    
    font-family: 'Inter', sans-serif;
    color: var(--wplcs-text-primary);
    background-color: var(--wplcs-bg);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    margin: 20px 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism effects */
.wplcs-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--wplcs-accent-glow) 0%, transparent 40%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.wplcs-container * {
    z-index: 1;
    position: relative;
}

/* Loading State */
.wplcs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.wplcs-loading .loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--wplcs-card-border);
    border-top-color: var(--wplcs-accent);
    border-radius: 50%;
    animation: wplcs-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 16px;
}

@keyframes wplcs-spin {
    to { transform: rotate(360deg); }
}

/* Scorecards */
.wplcs-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.wplcs-match-card {
    background: var(--wplcs-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--wplcs-card-border);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

.wplcs-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px var(--wplcs-accent-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.wplcs-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wplcs-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wplcs-match-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
}

.wplcs-match-status.live {
    background: rgba(239, 68, 68, 0.15);
    color: var(--wplcs-danger);
    animation: wplcs-pulse 2s infinite;
}

@keyframes wplcs-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.wplcs-team-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.wplcs-team-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wplcs-score-text {
    color: var(--wplcs-text-primary);
}

.wplcs-match-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--wplcs-card-border);
    font-size: 0.85rem;
    color: var(--wplcs-accent);
    font-weight: 500;
}

/* News Grid */
.wplcs-news-grid .wplcs-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wplcs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wplcs-news-card {
    background: var(--wplcs-card-bg);
    border: 1px solid var(--wplcs-card-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wplcs-news-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wplcs-news-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.wplcs-news-card h4 a {
    color: var(--wplcs-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.wplcs-news-card h4 a:hover {
    color: var(--wplcs-accent);
}

.wplcs-date {
    font-size: 0.8rem;
    color: var(--wplcs-text-secondary);
    margin-bottom: 8px;
}

.wplcs-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--wplcs-text-secondary);
    margin: 0;
}

.wplcs-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--wplcs-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}
