/* StreamMatch Frontend Styles */

.streammatch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Twitch Login Button */
.streammatch-twitch-login {
    display: inline-block;
    background: #6441a5;
    color: white !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.streammatch-twitch-login:hover {
    background: #7d5bbe;
    color: white !important;
    text-decoration: none !important;
}

.streammatch-twitch-login i {
    margin-right: 8px;
}

/* Streamer Cards */
.streammatch-streamer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.streammatch-streamer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.streammatch-streamer-header {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, #6441a5, #2d1b4e);
}

.streammatch-streamer-avatar {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    background: #fff;
    object-fit: cover;
}

.streammatch-streamer-body {
    padding: 40px 20px 20px;
}

.streammatch-streamer-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

.streammatch-streamer-name a {
    color: #333;
    text-decoration: none;
}

.streammatch-streamer-name a:hover {
    color: #6441a5;
}

.streammatch-streamer-username {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
}

.streammatch-streamer-games {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.streammatch-game-tag {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #333;
}

.streammatch-live-badge {
    background: #e53935;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Game Cards */
.streammatch-game-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.streammatch-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.streammatch-game-icon {
    font-size: 48px;
    color: #6441a5;
    margin-bottom: 10px;
}

.streammatch-game-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

/* Stats Cards */
.streammatch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.streammatch-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.streammatch-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #6441a5;
}

.streammatch-stat-label {
    color: #666;
    margin-top: 5px;
}

/* Admin Cards */
.streammatch-admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.streammatch-admin-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Profile Header */
.streammatch-profile-header {
    background: linear-gradient(135deg, #6441a5, #2d1b4e);
    padding: 40px 20px;
    border-radius: 8px;
    color: white;
    margin-bottom: 30px;
}

/* Login Required */
.streammatch-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.streammatch-login-required .button {
    margin: 5px;
}

/* Search */
.streammatch-search-form {
    margin-bottom: 30px;
}

.streammatch-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.streammatch-search-input:focus {
    border-color: #6441a5;
    outline: none;
}

.streammatch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.streammatch-filter-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Widget Styles */
.streammatch-widget-streamers li,
.streammatch-widget-games li,
.streammatch-widget-live li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.streammatch-widget-streamers li:last-child,
.streammatch-widget-games li:last-child,
.streammatch-widget-live li:last-child {
    border-bottom: none;
}

.streammatch-widget-streamers a,
.streammatch-widget-games a,
.streammatch-widget-live a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streammatch-widget-streamers a:hover,
.streammatch-widget-games a:hover,
.streammatch-widget-live a:hover {
    color: #6441a5;
}

/* Responsive */
@media (max-width: 768px) {
    .streammatch-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .streammatch-streamer-card {
        margin-bottom: 15px;
    }
    
    .streammatch-profile-header {
        padding: 20px;
    }
    
    .streammatch-profile-header div {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .streammatch-container {
        padding: 10px;
    }
    
    .streammatch-stats {
        grid-template-columns: 1fr;
    }
}