/* ========================================================================
   SMG UNIVERSAL POSTS WIDGET
   Flexibles Widget für Blog Posts, Press Articles und gemischte Inhalte
   ======================================================================== */

.smg-universal-posts {
    padding: 4rem 0;
    position: relative;
}

/* BLOG MODE - Heller, moderner Look */
.smg-universal-posts.mode-blog {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* PRESS MODE - Professional, Business Look */
.smg-universal-posts.mode-press {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

/* MIXED MODE - Neutraler Look */
.smg-universal-posts.mode-mixed {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.smg-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* HEADER SECTION
   ======================================================================== */

.smg-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
}

.smg-header-content {
    flex: 1;
}

.smg-posts-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mode-blog .smg-posts-title {
    background: linear-gradient(135deg, #1e293b 0%, #dc2626 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mode-press .smg-posts-title {
    color: white;
}

.mode-mixed .smg-posts-title {
    color: #1e293b;
}

.smg-posts-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 500;
}

.mode-blog .smg-posts-subtitle {
    color: #64748b;
}

.mode-press .smg-posts-subtitle {
    color: #cbd5e1;
}

.mode-mixed .smg-posts-subtitle {
    color: #64748b;
}

.smg-header-action .smg-btn {
    flex-shrink: 0;
}

/* FILTERS
   ======================================================================== */

.smg-posts-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.smg-post-filter {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-press .smg-post-filter {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.smg-post-filter.active {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
}

/* FEATURED POST
   ======================================================================== */

.smg-featured-post {
    margin-bottom: 3rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-press .smg-featured-post {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.smg-featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.smg-featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 350px;
}

.smg-featured-image {
    position: relative;
    overflow: hidden;
}

.smg-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-featured-post:hover .smg-featured-image img {
    transform: scale(1.05);
}

.smg-featured-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mode-press .smg-featured-info {
    color: white;
}

/* POSTS GRID
   ======================================================================== */

.smg-posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.smg-posts-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.smg-posts-grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.smg-posts-grid.columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* FEATURED GRID LAYOUT */
.layout-featured_grid .smg-posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.layout-featured_grid .smg-post-featured-wrapper {
    grid-row: span 2;
}

.layout-featured_grid .smg-post-card.featured-grid {
    height: 100%;
}

/* POST CARDS
   ======================================================================== */

.smg-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mode-press .smg-post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.smg-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.smg-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.smg-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-post-card:hover .smg-post-image img {
    transform: scale(1.05);
}

.smg-post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mode-blog .smg-post-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.mode-press .smg-post-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.mode-mixed .smg-post-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.smg-external-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.smg-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mode-press .smg-post-content {
    color: white;
}

/* POST META */
.smg-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.mode-blog .smg-post-meta {
    color: #64748b;
}

.mode-press .smg-post-meta {
    color: #cbd5e1;
}

.smg-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.smg-post-meta i {
    color: var(--primary-red);
}

/* POST TITLE */
.smg-post-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.mode-blog .smg-post-title {
    color: #1e293b;
}

.mode-press .smg-post-title {
    color: white;
}

.smg-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.smg-post-title a:hover {
    color: var(--primary-red);
    text-decoration: none;
}

/* POST EXCERPT */
.smg-post-excerpt {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mode-blog .smg-post-excerpt {
    color: #64748b;
}

.mode-press .smg-post-excerpt {
    color: #cbd5e1;
}

/* POST FOOTER */
.smg-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* LIST LAYOUT
   ======================================================================== */

.layout-list .smg-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layout-list .smg-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    max-height: 200px;
}

.layout-list .smg-post-image {
    height: 200px;
}

.layout-list .smg-post-content {
    padding: 2rem;
}

/* LOAD MORE BUTTON
   ======================================================================== */

.smg-posts-load-more {
    text-align: center;
    margin-top: 2rem;
}

/* RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 1200px) {
    .layout-featured_grid .smg-posts-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .layout-featured_grid .smg-post-featured-wrapper {
        grid-column: span 2;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .smg-universal-posts {
        padding: 3rem 0;
    }
    
    .smg-posts-container {
        padding: 0 1rem;
    }
    
    .smg-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .smg-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .smg-featured-content {
        grid-template-columns: 1fr;
    }
    
    .smg-featured-image {
        height: 250px;
    }
    
    .layout-list .smg-post-card {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .layout-list .smg-post-image {
        height: 220px;
    }
    
    .smg-posts-filters {
        gap: 0.75rem;
    }
    
    .smg-post-filter {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .smg-posts-title {
        font-size: 1.5rem;
    }
    
    .smg-featured-info,
    .smg-post-content {
        padding: 1.25rem;
    }
    
    .smg-post-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .smg-post-link,
    .smg-download-link {
        justify-content: center;
        text-align: center;
    }
} 