/* Blog Showcase Plugin - Frontend Styles */

:root {
    --bs-primary: #1f2937;
    --bs-accent: #3b82f6;
    --bs-accent-hover: #2563eb;
    --bs-light: #f9fafb;
    --bs-border: #e5e7eb;
    --bs-text: #111827;
    --bs-text-light: #6b7280;
    --bs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --bs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --bs-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --image-height: 250px;
}

.bs-showcase-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    width: 75%;
    max-width: 100%;
}

/* Container */
.bs-showcase-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bs-light);
}

.bs-slides {
    display: flex;
    gap: 24px;
    padding: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    flex-wrap: nowrap;
}

/* Desktop: 3 Spalten */
@media (min-width: 1200px) {
    .bs-slides {
        gap: 20px;
        padding: 20px;
    }

    .bs-post-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

/* Tablet: 2 Spalten */
@media (max-width: 1199px) and (min-width: 768px) {
    .bs-slides {
        gap: 16px;
        padding: 16px;
    }

    .bs-post-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

/* Mobile: breitere Kacheln für bessere Lesbarkeit */
@media (max-width: 767px) {
    .bs-showcase-wrapper {
        gap: 10px;
        width: min(92%, 680px);
    }

    .bs-showcase-container {
        overflow: hidden;
    }

    .bs-slides {
        gap: 16px;
        padding: 16px;
        justify-content: center;
    }

    .bs-post-card {
        flex: 0 0 85%;
        min-width: 85%;
    }

    .bs-post-content {
        padding: 18px;
    }

    .bs-post-title {
        font-size: 20px;
    }

    .bs-post-excerpt {
        font-size: 15px;
        line-height: 1.7;
    }

    .bs-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* Post Card */
.bs-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--bs-shadow-md);
    border: 1px solid var(--bs-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
}

.bs-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bs-shadow-xl);
    border-color: var(--bs-accent);
}

/* Post Image */
.bs-post-image {
    position: relative;
    width: 100%;
    height: var(--image-height);
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

.bs-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bs-post-card:hover .bs-post-image img {
    transform: scale(1.08);
}

.bs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.bs-post-card:hover .bs-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Post Content */
.bs-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bs-post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-text);
    line-height: 1.4;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bs-post-excerpt {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--bs-text-light);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bs-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-accent);
    text-decoration: none;
    margin-top: auto;
    transition: all 0.2s ease;
}

.bs-read-more:hover {
    color: var(--bs-accent-hover);
    gap: 10px;
}

/* Navigation Arrows */
.bs-arrow {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--bs-border);
    color: var(--bs-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.bs-arrow:hover {
    background: var(--bs-accent);
    color: white;
    border-color: var(--bs-accent);
    transform: scale(1.1);
}

.bs-arrow:active {
    transform: scale(0.95);
}

.bs-arrow svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.bs-arrow:disabled:hover {
    transform: scale(1);
    background: white;
    color: var(--bs-text);
    border-color: var(--bs-border);
}

/* Responsive Arrows */
@media (max-width: 767px) {
    .bs-arrow {
        width: 48px;
        height: 48px;
    }

    .bs-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .bs-arrow {
        width: 44px;
        height: 44px;
    }

    .bs-arrow svg {
        width: 18px;
        height: 18px;
    }

    .bs-showcase-wrapper {
        gap: 8px;
    }
}

/* Post Card Responsive */
@media (max-width: 768px) {
    .bs-post-title {
        font-size: 16px;
    }

    .bs-post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .bs-post-content {
        padding: 16px;
    }

    .bs-post-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .bs-post-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .bs-post-excerpt {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .bs-post-content {
        padding: 14px;
    }

    .bs-post-image {
        height: 180px;
    }

    .bs-read-more {
        font-size: 12px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bs-post-card {
    animation: slideIn 0.5s ease-out forwards;
}

/* Smooth scrolling */
.bs-showcase-container {
    scroll-behavior: smooth;
}

/* Accessibility */
.bs-arrow:focus {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bs-arrow {
        display: none;
    }
}
