/**
 * Knowledge Showcase - Praxis-Bibliothek auf Startseite
 * Modern Design: Featured Hero + Horizontal Carousel + Topic Grid
 * Apple Frosted Glass Effect
 * 
 * @package RealSales
 */

/* ===============================================
   KNOWLEDGE SHOWCASE SECTION
   =============================================== */

.knowledge-showcase {
    padding: 80px 40px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 237, 246, 0.3) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
}

.knowledge-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 40%, rgba(107, 76, 154, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.knowledge-showcase-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===============================================
   HEADER
   =============================================== */

.knowledge-showcase-header {
    text-align: center;
    margin-bottom: 64px;
}

.showcase-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--rs-glass-bg-light);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid var(--rs-glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rs-purple);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(107, 76, 154, 0.1);
}

.showcase-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--rs-gray-900);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.showcase-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--rs-gray-600);
    margin: 0;
}

/* ===============================================
   FEATURED HERO ARTICLE
   =============================================== */

.featured-hero {
    margin-bottom: 40px;
}

.hero-article-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    background: var(--rs-glass-bg);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid var(--rs-glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--rs-glass-shadow);
    transition: var(--rs-transition);
    text-decoration: none;
    align-items: center;
}

.hero-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rs-glass-shadow-hover);
}

.hero-article-image {
    position: relative;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.hero-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-article-card:hover .hero-article-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-article-content {
    padding: 24px 24px 24px 0;
}

.hero-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.content-type {
    color: var(--rs-purple);
}

.meta-separator {
    color: var(--rs-gray-400);
}

.content-category {
    color: var(--rs-gray-600);
}

.hero-article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rs-gray-900);
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.hero-article-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--rs-gray-600);
    margin-bottom: 20px;
}

/* Button-Styles werden von buttons-global.css übernommen */

.hero-article-cta svg {
    stroke: currentColor;
}

/* ===============================================
   CONTENT CAROUSEL
   =============================================== */

.content-carousel-section {
    margin-bottom: 64px;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.carousel-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--rs-gray-900);
    margin: 0;
}

.carousel-view-all {
    font-size: 16px;
    font-weight: 600;
    color: var(--rs-purple);
    text-decoration: none;
    transition: var(--rs-transition-fast);
}

.carousel-view-all:hover {
    color: var(--rs-purple-dark);
    transform: translateX(4px);
}

.content-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.content-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    scroll-snap-align: start;
    background: var(--rs-glass-bg);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid var(--rs-glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--rs-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 76, 154, 0.15);
    border-color: var(--rs-purple);
}

.carousel-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-card-image img {
    transform: scale(1.05);
}

.carousel-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.card-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--rs-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--rs-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rs-gray-900);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===============================================
   TOPIC GRID
   =============================================== */

.topics-grid-section {
    margin-bottom: 64px;
}

.topics-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--rs-gray-900);
    margin: 0 0 32px 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.topic-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--rs-glass-bg-light);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid var(--rs-glass-border);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--rs-transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.topic-pill:hover {
    background: var(--rs-glass-bg);
    border-color: var(--rs-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 76, 154, 0.12);
}

.topic-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--rs-gray-900);
}

.topic-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--rs-purple);
    background: rgba(107, 76, 154, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ===============================================
   MAIN CTA
   =============================================== */

.knowledge-showcase-cta {
    text-align: center;
}

/* Button-Styles werden von buttons-global.css übernommen */

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 1024px) {
    .hero-article-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-article-image {
        min-height: 300px;
    }
    
    .hero-article-content {
        padding: 32px;
    }
    
    .hero-article-title {
        font-size: 28px;
    }
    
    .showcase-title {
        font-size: 40px;
    }
    
    .carousel-title,
    .topics-title {
        font-size: 28px;
    }
    
    .content-carousel {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .knowledge-showcase {
        padding: 60px 20px;
    }
    
    .knowledge-showcase-header {
        margin-bottom: 48px;
    }
    
    .showcase-title {
        font-size: 32px;
    }
    
    .showcase-subtitle {
        font-size: 16px;
    }
    
    .hero-article-image {
        min-height: 250px;
    }
    
    .hero-article-content {
        padding: 24px;
    }
    
    .hero-article-title {
        font-size: 24px;
    }
    
    .carousel-title,
    .topics-title {
        font-size: 24px;
    }
    
    .content-carousel {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

