/* Showroom Overview Page Styles */

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0px;
    width: 3px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

[data-theme="dark"] .scroll-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary-color), #00B3FF);
    transition: height 0.1s ease-out;
}

/* Main Content */
.showroom-overview-main {
    min-height: calc(100vh - 5rem);
    padding-bottom: 4rem;
}

/* Feature Section */
.showroom-feature-section {
    padding: 6rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.feature-section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .feature-section-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.feature-section-content {
    max-width: 100%;
}

.feature-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-section-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-section-preview {
    position: relative;
    width: 100%;
}

.feature-preview-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .feature-preview-video-wrapper {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.feature-preview-video-wrapper:hover {
    opacity: 0.95;
}

.feature-preview-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .feature-preview-label {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-preview-label-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-preview-controls {
    position: relative;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    z-index: 10;
    pointer-events: auto;
}

.feature-preview-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-preview-nav-btn {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-preview-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-preview-nav-btn:hover {
    background: rgba(31, 41, 55, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.feature-preview-nav-btn:active {
    transform: scale(0.95);
}

.feature-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-preview-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.feature-preview-slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-preview-slideshow-image.active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .feature-section-content {
        text-align: center;
    }
    
    .feature-section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .showroom-feature-section {
        padding: 3rem 1rem;
    }
    
    .feature-section-title {
        font-size: 2.5rem;
    }
    
    .feature-section-description {
        font-size: 1.125rem;
    }
}

/* Bento Grid Section */
.showroom-overview-grid-section {
    padding: 2rem 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.bento-grid-overview {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(400px, auto);
}

/* Showcase Card Base Styles */
.showcase-card {
    position: relative;
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

[data-theme="dark"] .showcase-card {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #00B3FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .showcase-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.showcase-card:hover::before {
    transform: scaleX(1);
}

/* Card Sizes */
.showcase-card {
    grid-column: span 4;
    grid-row: span 1;
}

.showcase-card-large {
    grid-column: span 8;
}

@media (max-width: 1024px) {
    .showcase-card {
        grid-column: span 6;
    }
    
    .showcase-card-large {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .showcase-card,
    .showcase-card-large {
        grid-column: span 12;
    }
}

/* Showcase Card Media */
.showcase-card-media {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.showcase-card-large .showcase-card-media {
    height: 400px;
}

.showcase-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.showcase-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.showcase-card:hover .showcase-card-image {
    opacity: 0;
}

.showcase-card:hover .showcase-card-video {
    opacity: 1;
}

.showcase-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Showcase Card Content */
.showcase-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.showcase-card-year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-card-status {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .showcase-card-status {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.showcase-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.showcase-card:hover .showcase-card-title {
    color: var(--primary-color);
}

.showcase-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.showcase-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
    line-height: 1.7;
}

.showcase-card-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
}

.showcase-card-list li:last-child {
    margin-bottom: 0;
}

/* Technologies */
.showcase-card-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 156, 221, 0.3);
    transition: transform 0.2s ease;
}

.showcase-card:hover .tech-badge {
    transform: translateY(-2px);
}

[data-theme="dark"] .tech-badge {
    box-shadow: 0 2px 8px rgba(0, 179, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .bento-grid-overview {
        gap: 1.25rem;
    }
    
    .showcase-card-content {
        padding: 1.5rem;
    }
    
    .showcase-card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .showroom-overview-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .showroom-overview-grid-section {
        padding: 1.5rem 1rem 3rem;
    }
    
    .bento-grid-overview {
        gap: 1rem;
        grid-auto-rows: minmax(350px, auto);
    }
    
    .showcase-card-media {
        height: 250px;
    }
    
    .showcase-card-large .showcase-card-media {
        height: 300px;
    }
    
    .showcase-card-content {
        padding: 1.25rem;
    }
    
    .showcase-card-title {
        font-size: 1.25rem;
    }
    
    .showcase-card-description {
        font-size: 0.9375rem;
    }
}

/* Loading State */
.showcase-card-image[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

[data-theme="dark"] .showcase-card-image[loading="lazy"] {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Timeline Section - Flowbite Style */
.showroom-timeline-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.timeline-container {
    width: 100%;
}

.timeline-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .timeline-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

.timeline-list {
    position: relative;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 0;
    list-style: none;
    margin: 0;
}

[data-theme="dark"] .timeline-list {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-left: 1rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: -1.5rem;
    right: -0.5rem;
    bottom: -0.5rem;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item-active .timeline-content-wrapper {
    background: rgba(0, 156, 221, 0.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 156, 221, 0.1);
}

[data-theme="dark"] .timeline-item-active .timeline-content-wrapper {
    background: rgba(0, 179, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 179, 255, 0.15);
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--background);
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 4px rgba(0, 156, 221, 0.2);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--background);
}

.timeline-content-wrapper {
    position: relative;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    z-index: 1;
}

.timeline-preview-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: auto;
    height: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0.5rem;
    box-shadow: none;
}

[data-theme="dark"] .timeline-preview-btn {
    background: none;
    border: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
}

.timeline-item-active .timeline-preview-btn {
    color: var(--primary-color);
}

.timeline-preview-btn:hover {
    background: none;
    color: var(--primary-color);
    transform: scale(1.15);
    opacity: 1;
}

.timeline-item-active .timeline-preview-btn:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.timeline-preview-btn:active {
    transform: scale(1.05);
}

.timeline-preview-btn svg {
    width: 24px;
    height: 24px;
}

.timeline-time {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 156, 221, 0.3);
}

[data-theme="dark"] .timeline-tech-badge {
    box-shadow: 0 2px 8px rgba(0, 179, 255, 0.4);
}


/* Responsive Timeline */
@media (max-width: 768px) {
    .showroom-timeline-section {
        padding: 2rem 1rem;
    }
    
    .timeline-item {
        margin-left: 0.75rem;
    }
    
    .timeline-dot {
        left: -1.25rem;
        width: 0.625rem;
        height: 0.625rem;
    }
    
    .timeline-content-wrapper {
        padding: 0.875rem;
    }
    
    .timeline-title-text {
        font-size: 1.125rem;
    }
    
    .timeline-description {
        font-size: 0.9375rem;
    }
    
    .timeline-tech-badge {
        font-size: 0.8125rem;
        padding: 0.3125rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin-left: 0.5rem;
    }
    
    .timeline-dot {
        left: -1rem;
        width: 0.5rem;
        height: 0.5rem;
        border-width: 2px;
    }
    
    .timeline-content-wrapper {
        padding: 0.75rem;
    }
    
    .timeline-title-text {
        font-size: 1rem;
    }
    
    .timeline-description {
        font-size: 0.875rem;
    }
    
    .timeline-tech-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

