/**
 * Tour Categories Component Styles
 *
 * Visual category cards with hover effects
 * Mobile-first responsive grid
 */

/* Section */
.pca-tour-categories {
    margin: var(--space-section, 4rem) 0;
    padding: var(--space-xl, 2rem) 0;
    background: var(--color-white, #ffffff);
}

.pca-tour-categories__container {
    max-width: var(--container-xl, 1280px);
    margin: 0 auto;
    padding: 0 var(--space-md, 1rem);
}

/* Header */
.pca-tour-categories__header {
    text-align: center;
    margin-bottom: var(--space-xl, 2rem);
}

.pca-tour-categories__heading {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading, #0f1c28);
    margin: 0 0 var(--space-sm, 0.75rem) 0;
}

.pca-tour-categories__subheading {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
    color: var(--color-muted, #6b7280);
    margin: 0;
}

/* Grid */
.pca-tour-categories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md, 1rem);
}

/* Responsive Grid */
@media (min-width: 640px) {
    .pca-tour-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pca-tour-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg, 1.5rem);
    }
}

/* Category Card */
.pca-tour-category {
    position: relative;
    display: block;
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pca-tour-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pca-tour-category:focus {
    outline: 2px solid var(--category-color, var(--color-primary, #ff6b00));
    outline-offset: 2px;
}

/* Background */
.pca-tour-category__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.pca-tour-category:hover .pca-tour-category__bg {
    transform: scale(1.05);
}

/* Content */
.pca-tour-category__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding: var(--space-lg, 1.5rem);
    color: var(--color-white, #ffffff);
}

.pca-tour-category__icon {
    font-size: 40px;
    margin-bottom: var(--space-sm, 0.75rem);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pca-tour-category__name {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white, #ffffff);
    margin: 0 0 var(--space-xs, 0.5rem) 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pca-tour-category__count {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Overlay */
.pca-tour-category__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.pca-tour-category:hover .pca-tour-category__overlay {
    opacity: 0.9;
}

/* Carousel Layout (Optional) */
.pca-tour-categories__grid[data-layout="carousel"] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: var(--space-md, 1rem);
    padding-bottom: var(--space-sm, 0.75rem);
}

.pca-tour-categories__grid[data-layout="carousel"] .pca-tour-category {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .pca-tour-categories {
        margin: var(--space-lg, 1.5rem) 0;
        padding: var(--space-lg, 1.5rem) 0;
    }

    .pca-tour-categories__header {
        margin-bottom: var(--space-lg, 1.5rem);
    }

    .pca-tour-category__content {
        padding: var(--space-md, 1rem);
    }

    .pca-tour-category__icon {
        font-size: 32px;
    }

    .pca-tour-category__name {
        font-size: 18px;
    }

    .pca-tour-category__count {
        font-size: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pca-tour-category,
    .pca-tour-category__bg,
    .pca-tour-category__overlay {
        transition: none;
    }

    .pca-tour-category:hover {
        transform: none;
    }

    .pca-tour-category:hover .pca-tour-category__bg {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .pca-tour-categories {
        page-break-inside: avoid;
    }

    .pca-tour-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm, 0.75rem);
    }

    .pca-tour-category {
        border: 1px solid #000;
        height: auto;
        min-height: 120px;
    }

    .pca-tour-category__bg {
        display: none;
    }

    .pca-tour-category__content {
        color: #000;
    }

    .pca-tour-category__name {
        color: #000;
        text-shadow: none;
    }
}
