/* Content page specific styles */
.content-header {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(60px, 15vw, 100px);
    height: 4px;
    background: var(--f1-red);
}

.content-header h1 {
    color: var(--f1-white);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.content-header p {
    color: var(--f1-text-gray);
    margin: 0.75rem 0 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 600px;
}

/* Filter buttons */
.content-filters {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: 0 0 1.5rem;
    margin: 0 -0.25rem 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--f1-light-gray);
}

.filter-btn {
    flex: 1;
    min-width: max-content;
    padding: 0.75rem clamp(1rem, 3vw, 1.5rem);
    border: none;
    background: var(--f1-dark-gray);
    color: var(--f1-text-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transform: skew(-10deg);
    box-shadow: inset 0 0 0 1px var(--f1-light-gray);
    margin: 0 0.25rem;
}

.filter-btn span {
    display: block;
    transform: skew(10deg);
    white-space: nowrap;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-btn:hover {
    color: var(--f1-white);
    box-shadow: inset 0 0 0 1px var(--f1-red);
}

.filter-btn:hover::after {
    opacity: 1;
}

.filter-btn.active {
    background-color: var(--f1-red);
    color: var(--f1-white);
    box-shadow: none;
}

.filter-btn.active::after {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

/* Twitch section */
.twitch-section {
    background-color: var(--f1-dark-gray);
    padding: clamp(2rem, 5vw, 3rem) 0;
    margin: clamp(2rem, 5vw, 3rem) 0;
    position: relative;
}

.twitch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--f1-red);
}

.twitch-section h3 {
    color: var(--f1-red);
    text-align: left;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.twitch-section h3::before {
    content: '•';
    color: var(--f1-red);
    font-size: 2.5rem;
    line-height: 0;
    margin-top: -4px;
}

.twitch-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--f1-black);
    border-radius: clamp(4px, 1vw, 8px);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Content grid */
.content-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.content-card {
    background: var(--f1-dark-gray);
    border-radius: clamp(4px, 1vw, 8px);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.content-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--f1-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

@media (hover: hover) {
    .content-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .content-card:hover::after {
        transform: scaleX(1);
    }

    .content-card:hover .content-thumbnail img {
        transform: scale(1.05);
    }

    .content-card:hover .content-info h2 {
        color: var(--f1-red);
    }

    .twitch-embed:hover {
        transform: translateY(-4px);
    }
}

.content-thumbnail {
    position: relative;
    width: 100%;
    height: clamp(180px, 30vw, 220px);
    overflow: hidden;
}

.content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.duration {
    position: absolute;
    bottom: clamp(8px, 2vw, 12px);
    right: clamp(8px, 2vw, 12px);
    background: rgba(0, 0, 0, 0.8);
    color: var(--f1-white);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.content-info {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.content-info h2 {
    color: var(--f1-white);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    font-weight: 600;
    transition: color 0.3s ease;
}

.creator {
    color: var(--f1-red);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin: 0 0 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.creator::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--f1-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.description {
    color: var(--f1-text-gray);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin: 0 0 1.25rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--f1-text-gray);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.type {
    color: var(--f1-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Twitch states */
.twitch-loading,
.twitch-offline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--f1-black);
    color: var(--f1-white);
    text-align: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.twitch-embed.loaded .twitch-loading {
    display: none;
}

.twitch-offline {
    display: none;
}

.twitch-embed.is-offline .twitch-offline {
    display: flex;
}

.loading-spinner {
    width: clamp(32px, 8vw, 48px);
    height: clamp(32px, 8vw, 48px);
    border: 3px solid var(--f1-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.25rem;
}

.offline-message h4 {
    color: var(--f1-red);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offline-message p {
    color: var(--f1-text-gray);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

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

.twitch-section.error {
    display: none;
}

/* Grid breakpoints */
@media (min-width: 640px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .filter-btn {
        padding: 0.85rem clamp(1.25rem, 4vw, 1.75rem);
    }

    .content-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .content-card::after {
        height: 2px;
        transform: scaleX(1);
        opacity: 0.5;
    }

    .content-info h2 {
        color: var(--f1-white);
    }

    .twitch-embed {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Small screens */
@media (max-width: 480px) {
    .content-filters {
        margin: 0 -0.5rem 1.5rem;
    }

    .filter-btn {
        margin: 0 0.25rem;
        padding: 0.65rem 1rem;
    }

    .description {
        -webkit-line-clamp: 2;
    }

    .content-meta {
        font-size: 0.75rem;
    }
} 