﻿/* ============================================
   artikeldetails.css - Single Article Detail Page
   ============================================ */

.artikel-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   Page Header (shown on detail page too)
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.page-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    outline: none;
}

.page-subtitle {
    color: var(--color-text-muted, #b0b0b0);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Navigation Row - Back + Breadcrumb
   ============================================ */
.detail-nav-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 44px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-text, #f0f0f0);
    background: var(--color-bg-card, rgba(30, 30, 30, 0.95));
    border: 1px solid var(--color-border, #3a3a3a);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

    .btn-back:hover {
        border-color: var(--color-primary, #28b4fa);
        background: var(--color-primary, #28b4fa);
        color: white;
    }

    .btn-back svg {
        stroke: currentColor;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text, #e0e0e0);
    padding: 0 16px;
    height: 44px;
    background: var(--color-bg-card, rgba(30, 30, 30, 0.95));
    border-radius: 6px;
    border: 1px solid var(--color-border, #3a3a3a);
    min-width: 0;
    overflow: hidden;
}

    .breadcrumb a {
        color: var(--color-primary, #28b4fa);
        text-decoration: none;
        font-weight: 500;
        flex-shrink: 0;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        color: var(--color-text, #e0e0e0);
    }

        .breadcrumb span[aria-current="page"] {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

/* ============================================
   Detail Grid - Two Column Layout
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================================
   Gallery Section
   ============================================ */
.detail-gallery {
    position: sticky;
    top: calc(var(--header-height, 100px) + 16px);
    align-self: start;
}

.main-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--color-bg, #1a1a1a);
    border: 1px solid var(--color-border, #3a3a3a);
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
    }

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 3px;
}

    .gallery-nav:hover {
        background: var(--color-primary, #28b4fa);
    }

    .gallery-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .gallery-nav.prev {
        left: 12px;
    }

    .gallery-nav.next {
        right: 12px;
    }

/* Thumbnails */
.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    background: var(--color-bg-card, rgba(30, 30, 30, 0.95));
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border, #3a3a3a) transparent;
}

    .thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnails::-webkit-scrollbar-track {
        background: transparent;
    }

    .thumbnails::-webkit-scrollbar-thumb {
        background: var(--color-border, #3a3a3a);
        border-radius: 3px;
    }

.thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    background: var(--color-bg, #1a1a1a);
}

    .thumbnail.active {
        border-color: var(--color-primary, #28b4fa);
    }

    .thumbnail:hover:not(.active) {
        border-color: var(--color-border-hover, #555);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ============================================
   Detail Info Section
   ============================================ */
.detail-info {
    padding: 20px;
    background: var(--color-bg-card, rgba(30, 30, 30, 0.95));
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
    overflow: hidden;
}

.detail-category {
    display: inline-block;
    color: var(--color-primary, #28b4fa);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--color-text, #f0f0f0);
}

.detail-description {
    color: var(--color-text-muted, #c0c0c0);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

    .detail-description p {
        margin-bottom: 8px;
        color: var(--color-text-muted, #c0c0c0);
    }

.detail-divider {
    border: none;
    border-top: 1px solid var(--color-border, #3a3a3a);
    margin: 16px 0;
}

/* ============================================
   Booking Section
   ============================================ */
.booking-section {
    margin-top: 16px;
    max-width: 100%;
    overflow: hidden;
}

.booking-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary, #28b4fa);
}

.booking-layout {
    display: grid;
    grid-template-columns: auto 200px;
    gap: 16px;
    align-items: start;
}

.booking-calendar {
    min-width: 0;
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

    .booking-sidebar .date-inputs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .booking-sidebar .date-input {
        width: 100%;
    }

        .booking-sidebar .date-input input {
            width: 100%;
            box-sizing: border-box;
        }

.booking-form {
    margin-top: 12px;
}

/* Date inputs */
.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .date-input label {
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--color-text-muted, #b0b0b0);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .date-input input {
        height: 40px;
        padding: 0 8px;
        font-size: 0.85rem;
        font-family: inherit;
        border: 1px solid var(--color-border, #3a3a3a);
        border-radius: 6px;
        background: var(--color-bg, #1a1a1a);
        color: var(--color-text, #f0f0f0);
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

        .date-input input:focus {
            outline: none;
            border-color: var(--color-primary, #28b4fa);
        }

        .date-input input::-webkit-calendar-picker-indicator {
            filter: invert(0.8);
            cursor: pointer;
        }

/* Availability Info */
.availability-info {
    padding: 14px;
    background: var(--color-bg, #1a1a1a);
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border, #3a3a3a);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

    .availability-status.available {
        color: var(--color-success, #4ade80);
    }

    .availability-status.not-available {
        color: var(--color-error, #f87171);
    }

.availability-info .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary, #28b4fa);
    margin-bottom: 4px;
}

.price-note {
    font-size: 0.75rem;
    color: var(--color-text-muted, #999);
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 14px;
}

    .quantity-selector > label {
        display: block;
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--color-text-muted, #b0b0b0);
        text-transform: uppercase;
        margin-bottom: 6px;
        letter-spacing: 0.3px;
    }

.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border, #3a3a3a);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg, #1a1a1a);
    color: var(--color-text, #f0f0f0);
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .qty-btn:hover:not(:disabled) {
        background: var(--color-primary, #28b4fa);
        color: white;
    }

    .qty-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.qty-value {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text, #f0f0f0);
    background: var(--color-bg, #1a1a1a);
}

.qty-info {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted, #999);
}

/* Add to Cart Button */
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--color-primary, #28b4fa);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .btn-add-to-cart:hover:not(:disabled) {
        background: var(--color-primary-dark, #1a9ae0);
        transform: translateY(-1px);
    }

    .btn-add-to-cart:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ============================================
   Extended Info Section
   ============================================ */
.detail-extended {
    margin-top: 20px;
    padding: 20px;
    background: var(--color-bg-card, rgba(30, 30, 30, 0.95));
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
}

    .detail-extended h2 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 14px;
        color: var(--color-primary, #28b4fa);
        padding-bottom: 10px;
        border-bottom: 1px solid var(--color-border, #3a3a3a);
    }

    .detail-extended div {
        color: var(--color-text, #e0e0e0);
        line-height: 1.7;
        font-size: 0.9rem;
    }

        .detail-extended div p {
            margin-bottom: 12px;
            color: var(--color-text, #e0e0e0);
        }

        .detail-extended div strong,
        .detail-extended div b {
            color: var(--color-text, #f0f0f0);
            font-weight: 600;
        }

/* Utility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary, #28b4fa);
    color: white;
    padding: 8px 12px;
    z-index: 100;
    transition: top 0.2s ease;
}

    .skip-link:focus {
        top: 0;
    }

/* ============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-gallery {
        position: relative;
        top: 0;
    }

    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

        .booking-sidebar .date-inputs {
            flex-direction: row;
            gap: 12px;
        }

        .booking-sidebar .date-input {
            flex: 1;
            min-width: 140px;
        }

    .date-inputs {
        flex-direction: row;
        gap: 12px;
    }

    .date-input {
        flex: 1;
        min-width: 140px;
    }
}

/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .artikel-detail-page {
        padding: 0 8px;
    }

    .page-header {
        padding: var(--spacing-md) 0;
        margin-bottom: var(--spacing-lg);
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }

    .page-subtitle {
        font-size: var(--font-size-base);
    }
    .detail-nav-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .btn-back {
        height: 38px;
        padding: 0 12px;
        font-size: 0.8rem;
        gap: 4px;
    }

        .btn-back svg {
            width: 14px;
            height: 14px;
        }

    .breadcrumb {
        height: 38px;
        padding: 0 10px;
        font-size: 0.75rem;
        gap: 6px;
        width: -webkit-fill-available;
    }

    .booking-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-sidebar {
        flex-direction: column;
    }

        .booking-sidebar .date-inputs {
            flex-direction: row;
            gap: 8px;
        }

        .booking-sidebar .date-input {
            flex: 1;
        }

    /* Gallery - Reduced spacing */
    .detail-gallery {
        margin-bottom: 0;
        /*max-width: 90%;*/
    }

    .main-image {
        margin-bottom: 6px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

        .gallery-nav.prev {
            left: 8px;
        }

        .gallery-nav.next {
            right: 8px;
        }

    .thumbnails {
        padding: 6px;
        gap: 6px;
    }

    .thumbnail {
        width: 48px;
        height: 36px;
    }

    /* Detail info - Reduced spacing */
    .detail-info {
        padding: 14px;
        margin-top: 8px;
        /*max-width: 90%;*/
    }

    .detail-category {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .detail-name {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .detail-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .detail-divider {
        margin: 10px 0;
    }

    /* Booking section */
    .booking-section {
        margin-top: 10px;
    }

    .booking-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .booking-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-sidebar {
        flex-direction: column;
    }

    .date-inputs {
        flex-direction: row;
        gap: 8px;
    }

    .date-input {
        flex: 1;
    }

        .date-input input {
            height: 40px;
            font-size: 0.85rem;
            padding: 0 10px;
        }

        .date-input label {
            font-size: 0.65rem;
        }

    .availability-info {
        padding: 10px;
        margin-bottom: 10px;
    }

    .availability-status {
        font-size: 0.8rem;
    }

    .availability-info .price {
        font-size: 1.1rem;
    }

    .price-note {
        font-size: 0.65rem;
    }

    .quantity-selector {
        margin-bottom: 10px;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }

    .btn-add-to-cart {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Extended info */
    .detail-extended {
        padding: 14px;
        margin-top: 12px;
    }

        .detail-extended h2 {
            font-size: 0.95rem;
            margin-bottom: 10px;
            padding-bottom: 8px;
        }

        .detail-extended div {
            font-size: 0.85rem;
        }
}

/* ============================================
   Small Mobile (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
    .artikel-detail-page {
        padding: 0 6px;
    }

    .detail-nav-row {
        gap: 6px;
    }

    .btn-back {
        height: 36px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .breadcrumb {
        height: 36px;
        font-size: 0.7rem;
        padding: 0 8px;
    }

    .booking-sidebar .date-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .detail-name {
        font-size: 1.05rem;
    }

    .thumbnail {
        width: 44px;
        height: 33px;
    }

    /* Stack date inputs on very small screens */
    .date-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .date-input input {
        font-size: 0.8rem;
        padding: 0 6px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .btn-back,
    .btn-add-to-cart,
    .gallery-nav,
    .thumbnail {
        transition: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .btn-back,
    .btn-add-to-cart,
    .gallery-nav,
    .thumbnails,
    .booking-section,
    .detail-nav-row {
        display: none !important;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
