/* Custom styles for the trailers app */

:root {
    --primary: #EE7900;
    --secondary: #1C1C20;
    --accent: #E60105;
}

/* Logo styles */
.logo-container {
    transition: all 0.3s ease;
}

.logo-container img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-container:hover {
    transform: scale(1.05);
}

header .logo-container:hover img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Page transitions */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
}

/* Stałe przyciski nawigacyjne */
#fixedNavigation button {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#fixedNavigation button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Breadcrumbs */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: rgba(0, 0, 0, 0.3);
}

.breadcrumb-item.active {
    font-weight: 600;
    color: var(--primary);
}

.breadcrumb-item.cursor-pointer {
    color: var(--secondary);
}

.breadcrumb-item.cursor-pointer:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Filter tree styling */
.filter-category {
    margin-bottom: 1rem;
}

.filter-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    font-weight: 600;
}

.filter-items {
    padding-left: 1.5rem;
}

.filter-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-item:hover {
    color: #2563eb;
}

.filter-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
}

/* Filter options styling */
.filter-option {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid #e5e7eb;
    background-color: white;
}

.filter-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.filter-option.selected {
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(238, 121, 0, 0.3);
}

.filter-option-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.filter-option-content {
    padding: 1.5rem;
    background-color: white;
}

.filter-option-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.filter-option-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Selected filter tags */
.selected-filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #FFF3E0;
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(238, 121, 0, 0.3);
}

/* Step animation */
.step-container {
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Product card */
.product-card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: white;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Focus styles for better accessibility */
button:focus, 
input:focus, 
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Touch-friendly adjustments */
@media (max-width: 768px) {
    .filter-item, 
    button, 
    .product-card,
    .filter-option {
        min-height: 44px; /* Apple's recommended minimum touch target size */
    }
    
    .filter-item input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Animation for showing/hiding sections */
#productDetails.fade-in,
.step-container {
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Product specs table */
.product-spec-row {
    display: grid;
    grid-template-columns: 45% 55%;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0.5rem;
    border-radius: 0.25rem;
}

.product-spec-row:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.7);
}

.product-spec-row:hover {
    background-color: rgba(249, 250, 251, 1);
}

.product-spec-row:last-child {
    border-bottom: none;
}

.product-spec-label {
    font-weight: 500;
    color: #374151;
    padding-right: 0.75rem;
    word-break: break-word;
}

.product-spec-value {
    color: #111827;
    word-break: break-word;
}

/* Scrollbar styles for specs and addons */
#productSpecs, #productAddons {
    scrollbar-width: thin;
    scrollbar-color: rgba(238, 121, 0, 0.5) rgba(229, 231, 235, 0.5);
}

#productSpecs::-webkit-scrollbar, #productAddons::-webkit-scrollbar {
    width: 8px;
}

#productSpecs::-webkit-scrollbar-track, #productAddons::-webkit-scrollbar-track {
    background: rgba(229, 231, 235, 0.5);
    border-radius: 4px;
}

#productSpecs::-webkit-scrollbar-thumb, #productAddons::-webkit-scrollbar-thumb {
    background-color: rgba(238, 121, 0, 0.5);
    border-radius: 4px;
}

#productSpecs::-webkit-scrollbar-thumb:hover, #productAddons::-webkit-scrollbar-thumb:hover {
    background-color: rgba(238, 121, 0, 0.7);
}

/* Video container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Category cards */
.category-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid #e5e7eb;
    background-color: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.category-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.category-card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.category-card-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Additional styles for product page */
.addon-item {
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.addon-item:hover {
    color: var(--primary);
}

/* Gallery styles */
.gallery-item {
    transition: all 0.2s ease-in-out;
    flex: 0 0 auto;
    width: 90px;
    margin: 0 2px;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-item img {
    transition: all 0.3s ease;
    height: 80px;
    width: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-item img.ring-primary {
    box-shadow: 0 0 0 2px var(--primary);
}

#productGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Style dla galerii zdjęć */
#galleryWrapper {
    padding: 1rem;
    width: calc(100% - 2rem); /* Odpowiada szerokości zdjęć z mx-4 */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Style dla głównego zdjęcia w galerii */
#productImage, #secondaryImage {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#productImage:hover, #secondaryImage:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Poprawki dla kontenera zdjęcia */
.aspect-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.aspect-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} 