/* Live Sports Streaming Plugin - Frontend Styles */

/* Reset and Base Styles */
.lss-container * {
    box-sizing: border-box;
}

.lss-container {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* CSS Variables */
:root {
    --lss-primary-color: #1e3a8a;
    --lss-secondary-color: #3b82f6;
    --lss-accent-color: #ef4444;
    --lss-success-color: #10b981;
    --lss-warning-color: #f59e0b;
    --lss-dark-color: #1f2937;
    --lss-light-color: #f8fafc;
    --lss-text-primary: #1f2937;
    --lss-text-secondary: #6b7280;
    --lss-border-color: #e5e7eb;
    --lss-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lss-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --lss-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --lss-border-radius: 8px;
    --lss-transition: all 0.3s ease;
}

/* Header Styles */
.lss-header {
    background: linear-gradient(135deg, var(--lss-primary-color), var(--lss-secondary-color));
    color: white;
    padding: 2rem 0;
    border-radius: var(--lss-border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--lss-shadow-lg);
}

.lss-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lss-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lss-logo i {
    font-size: 2rem;
    color: var(--lss-accent-color);
}

.lss-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.lss-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.lss-search-box input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: none;
    border-radius: var(--lss-border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    width: 300px;
    transition: var(--lss-transition);
}

.lss-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.lss-search-box input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.lss-search-box i {
    position: absolute;
    right: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Main Content Grid */
.lss-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Video Section */
.lss-video-section {
    background: white;
    border-radius: var(--lss-border-radius);
    box-shadow: var(--lss-shadow-lg);
    overflow: hidden;
}

.lss-video-container {
    position: relative;
}

.lss-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--lss-border-radius) var(--lss-border-radius) 0 0;
    overflow: hidden;
}

.lss-video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lss-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: var(--lss-transition);
}

.lss-video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.lss-overlay-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--lss-accent-color);
}

.lss-overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lss-overlay-content p {
    color: rgba(255, 255, 255, 0.8);
}

.lss-video-info {
    padding: 1.5rem;
    background: white;
}

.lss-match-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lss-match-title h2 {
    font-size: 1.25rem;
    color: var(--lss-text-primary);
    margin: 0;
}

.lss-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lss-accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: lss-pulse 2s infinite;
}

.lss-live-indicator i {
    animation: lss-blink 1s infinite;
}

@keyframes lss-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes lss-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.lss-match-details {
    display: flex;
    gap: 2rem;
    color: var(--lss-text-secondary);
    font-size: 0.9rem;
}

.lss-match-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Matches Section */
.lss-matches-section {
    background: white;
    border-radius: var(--lss-border-radius);
    box-shadow: var(--lss-shadow-lg);
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.lss-matches-header {
    margin-bottom: 1.5rem;
}

.lss-matches-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--lss-text-primary);
}

.lss-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lss-filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--lss-border-color);
    background: white;
    color: var(--lss-text-secondary);
    border-radius: var(--lss-border-radius);
    cursor: pointer;
    transition: var(--lss-transition);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
}

.lss-filter-tab:hover {
    background: var(--lss-light-color);
    transform: translateY(-1px);
}

.lss-filter-tab.active {
    background: var(--lss-primary-color);
    color: white;
    border-color: var(--lss-primary-color);
}

.lss-matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Match Card */
.lss-match-card {
    border: 1px solid var(--lss-border-color);
    border-radius: var(--lss-border-radius);
    padding: 1rem;
    transition: var(--lss-transition);
    cursor: pointer;
    background: white;
    animation: lss-fadeInUp 0.5s ease-out;
}

.lss-match-card:hover {
    box-shadow: var(--lss-shadow-md);
    transform: translateY(-2px);
    border-color: var(--lss-secondary-color);
}

.lss-match-card.active {
    border-color: var(--lss-primary-color);
    box-shadow: var(--lss-shadow-md);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.05));
}

@keyframes lss-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lss-match-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.lss-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lss-status-indicator.live {
    background: var(--lss-accent-color);
    animation: lss-blink 1s infinite;
}

.lss-status-indicator.upcoming {
    background: var(--lss-warning-color);
}

.lss-status-indicator.finished {
    background: var(--lss-text-secondary);
}

.lss-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.lss-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.lss-team:last-child {
    flex-direction: row-reverse;
    text-align: left;
}

.lss-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.lss-team-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.lss-match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.lss-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lss-primary-color);
}

.lss-match-time {
    font-size: 0.7rem;
    color: var(--lss-text-secondary);
}

.lss-match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lss-league-name {
    font-size: 0.8rem;
    color: var(--lss-text-secondary);
}

.lss-watch-btn {
    background: var(--lss-secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--lss-border-radius);
    cursor: pointer;
    transition: var(--lss-transition);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
}

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

.lss-watch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.lss-loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
}

.lss-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--lss-secondary-color);
    border-radius: 50%;
    animation: lss-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes lss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.lss-error-message {
    background: var(--lss-accent-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--lss-border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Matches Message */
.lss-no-matches {
    text-align: center;
    padding: 2rem;
    color: var(--lss-text-secondary);
}

.lss-no-matches i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Custom Scrollbar */
.lss-matches-section::-webkit-scrollbar {
    width: 6px;
}

.lss-matches-section::-webkit-scrollbar-track {
    background: var(--lss-light-color);
    border-radius: 3px;
}

.lss-matches-section::-webkit-scrollbar-thumb {
    background: var(--lss-border-color);
    border-radius: 3px;
}

.lss-matches-section::-webkit-scrollbar-thumb:hover {
    background: var(--lss-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lss-container {
        padding: 10px;
    }
    
    .lss-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lss-search-box input {
        width: 250px;
    }
    
    .lss-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lss-matches-section {
        max-height: none;
        order: -1;
    }
    
    .lss-match-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lss-team {
        justify-content: center;
    }
    
    .lss-team:last-child {
        flex-direction: row;
    }
    
    .lss-match-score {
        order: -1;
    }
    
    .lss-match-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .lss-logo h1 {
        font-size: 1.4rem;
    }
    
    .lss-search-box input {
        width: 200px;
    }
    
    .lss-video-info {
        padding: 1rem;
    }
    
    .lss-matches-section {
        padding: 1rem;
    }
    
    .lss-filter-tabs {
        justify-content: center;
    }
}

/* WordPress Theme Compatibility */
.lss-container h1,
.lss-container h2,
.lss-container h3,
.lss-container h4,
.lss-container h5,
.lss-container h6 {
    font-family: 'Cairo', sans-serif;
}

.lss-container input,
.lss-container button,
.lss-container select {
    font-family: 'Cairo', sans-serif;
}

/* Hidden utility class */
.lss-hidden {
    display: none !important;
}

