/*
Theme Name: Sportlight Category Layout
Theme URI: https://sportlight.at
Author: Sophie Grill
Description: Kategoriebasiertes Layout mit horizontalem Scrollen
Version: 1.0
*/

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a1929;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.site-header {
    background: #0a1929;
    padding: 20px 0;
    border-bottom: 1px solid #1e3a5f;
}

.site-branding h1 {
    font-size: 32px;
    color: #fff;
}

.site-branding h1 span {
    color: #ffd700;
}

/* === Hero === */
.hero-section {
    background: #0f1419;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    color: #b0b0b0;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-section p {
    color: #808080;
    font-size: 18px;
}

/* === Category Sections === */
.category-section {
    padding: 60px 0;
    border-bottom: 1px solid #1e3a5f;
    background: #0a1929;
    background-color: #0a1929;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-label {
    font-size: 12px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-title h2 {
    font-size: 28px;
    color: #ffd700;
    text-transform: uppercase;
}

.view-all {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

/* === Horizontal Scroll Container === */
.posts-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5f #0a1929;
}

.posts-scroll::-webkit-scrollbar {
    height: 8px;
}

.posts-scroll::-webkit-scrollbar-track {
    background: #0a1929;
}

.posts-scroll::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

/* === Post Cards === */
.post-card {
    flex: 0 0 350px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #0a1929;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.post-content {
    padding: 20px;
}

.post-category {
    color: #4a9eff;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-title a:hover {
    color: #ffd700;
}

.post-excerpt {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #808080;
}

/* === Footer === */
.site-footer {
    background: #0a1929;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1e3a5f;
}

.footer-cta {
    margin-bottom: 30px;
}

.footer-cta h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-cta p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: #4a9eff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.cta-button:hover {
    background: #3a8eef;
}

.footer-text {
    color: #808080;
    font-size: 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .post-card {
        flex: 0 0 280px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .category-title h2 {
        font-size: 22px;
    }
}
