/* Streams Page Styles */

.streams-hero {
    padding: 140px 3rem 60px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.streams-header {
    text-align: center;
    margin-bottom: 3rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff3333;
    letter-spacing: 1.5px;
}

.streams-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.streams-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* Platform Filters */
.platform-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(74, 144, 226, 0.3);
    color: var(--white);
}

.filter-btn.active {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn svg {
    width: 20px;
    height: 20px;
}

.filter-btn .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-btn.active .count {
    background: var(--primary-blue);
    color: var(--white);
}

/* Streams Section */
.streams-section {
    padding: 80px 3rem;
    background: var(--dark-bg);
    min-height: 60vh;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.stream-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.stream-card:hover {
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.watch-button {
    background: none;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-button:hover {
    color: rgba(255, 255, 255, 0.7);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #1a1a1a;
    overflow: hidden;
}

.stream-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-thumbnail iframe,
.stream-thumbnail .twitch-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

.stream-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    background: #ff3333;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.stream-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.stream-viewers {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.stream-viewers svg {
    width: 14px;
    height: 14px;
}

.stream-info {
    padding: 1.5rem;
    position: relative;
}

.stream-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.6rem;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.stream-platform svg {
    width: 12px;
    height: 12px;
}

.stream-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-streamer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.streamer-name {
    font-weight: 600;
    color: var(--white);
}

.stream-game {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    stroke: var(--text-gray);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Stream Tools Section */
.stream-tools {
    padding: 100px 3rem;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-5px);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    stroke: var(--primary-blue);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.tool-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-tool {
    padding: 0.75rem 2rem;
    background: var(--white);
    border: none;
    border-radius: 10px;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tool:hover {
    background: var(--light-silver);
    transform: translateY(-2px);
}

/* Add Stream Section */
.add-stream-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.add-stream-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.add-stream-section p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.add-stream-form {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.add-stream-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.add-stream-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.add-stream-form button {
    padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .streams-title {
        font-size: 2.5rem;
    }
    
    .platform-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .add-stream-form {
        flex-direction: column;
    }
    
    .add-stream-form input {
        width: 100%;
    }
}
