/* Machine Details Page */

/* Page Hero */
.machine-page-hero {
    padding: 160px 5% 60px;
    background: #0A192F;
    position: relative;
    overflow: hidden;
}

.machine-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
}

.machine-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.mph-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.mph-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.mph-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 18px;
}

.mph-blue {
    background: linear-gradient(90deg, #007BFF, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mph-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 45px;
}

.mph-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.mph-stat {
    text-align: center;
}

.mph-stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
}

.mph-stat span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mph-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.1);
}

/* Showcase Section */
.machine-showcase {
    padding: 60px 5% 80px;
    background: #f0f6ff;
    position: relative;
}

.machine-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(10, 25, 47, 0.1);
}

/* Sidebar */
.machine-sidebar {
    background: #0A192F;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.sidebar-branding .mini-logo {
    width: 100px;
    margin-bottom: 10px;
}

.eco-tag {
    color: #007BFF;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.side-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.side-tab:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(0, 123, 255, 0.3);
}

.tab-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.tab-label strong {
    display: block;
    color: #94a3b8;
    font-size: 0.92rem;
    transition: 0.3s ease;
}

.tab-label span {
    color: #475569;
    font-size: 0.75rem;
}

.side-tab.active {
    background: #007BFF;
    border-color: #007BFF;
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.35);
}

.side-tab.active .tab-icon-box {
    background: rgba(255,255,255,0.2);
    color: white;
}

.side-tab.active .tab-label strong {
    color: white;
}

.side-tab.active .tab-label span {
    color: rgba(255,255,255,0.75);
}

.own-tech-btn {
    background: white;
    color: #0A192F;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.own-tech-btn:hover {
    background: #007BFF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* Right Panel */
.display-panel {
    padding: 50px;
    background: #fcfdfe;
    min-height: 650px;
}

.top-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #007BFF;
}

.panel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: #0A192F;
    margin: 8px 0 6px;
    line-height: 1.15;
}

.blue-text { color: #007BFF; }

.panel-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.content-body {
    transition: opacity 0.4s ease;
}

/* Fade animation */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* DEMO TAB */
.video-preview-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent 40%);
    pointer-events: none;
}

.live-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ef4444;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.df-item {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.df-item:hover {
    border-color: #007BFF;
    transform: translateY(-3px);
}

.df-item i {
    font-size: 1.2rem;
    color: #007BFF;
    width: 20px;
    flex-shrink: 0;
}

.df-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0A192F;
}

/* OVERVIEW TAB */
.ov-header {
    margin-bottom: 25px;
}

.ov-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A192F;
    margin-bottom: 8px;
}

.ov-header p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ov-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    transition: 0.3s ease;
}

.ov-card:hover {
    border-color: #007BFF;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.08);
}

.ov-card i {
    font-size: 1.6rem;
    color: #007BFF;
    margin-bottom: 12px;
    display: block;
}

.ov-card strong {
    display: block;
    font-size: 0.95rem;
    color: #0A192F;
    margin-bottom: 5px;
}

.ov-card span {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* PHOTOS TAB */
.slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 360px;
    background: radial-gradient(circle, #f8fbff 0%, #eef2f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.slide {
    position: absolute;
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.92);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

#playPauseBtn {
    background: #0A192F;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    font-size: 0.85rem;
}

#playPauseBtn:hover { background: #007BFF; }

.ms-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ms-dot.ms-dot-active {
    width: 22px;
    background: #007BFF;
    border-radius: 10px;
}

.slider-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SPECS TAB */
.specs-detailed { padding: 5px 0; }

.specs-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 5px;
    border-bottom: 2px solid #f1f5f9;
}

.specs-table-header span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.92rem;
    transition: 0.2s ease;
}

.spec-row:hover { background: #fafbff; padding-left: 8px; border-radius: 8px; }
.spec-row span  { color: #64748b; font-weight: 500; }
.spec-row strong { color: #0A192F; font-weight: 700; }

/* Bottom CTA */
.machine-bottom-cta {
    background: #0A192F;
    padding: 60px 5%;
}

.mbc-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.mbc-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.mbc-left h2 span { color: #007BFF; }

.mbc-left p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.mbc-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #007BFF;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.mbc-btn:hover {
    background: white;
    color: #0A192F;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}

/* Mobile Toggle Button */
.machine-toggle-btn {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 2100;
    background: #007BFF;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
    cursor: pointer;
    transition: 0.3s ease;
}

.machine-toggle-btn:hover { background: #0056b3; }

.machine-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.machine-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Tablet */
@media (max-width: 1100px) {
    .machine-container {
        grid-template-columns: 280px 1fr;
    }

    .display-panel { padding: 35px; }
}

/* Mobile */
@media (max-width: 992px) {
    .machine-page-hero {
        padding: 130px 5% 40px;
    }

    .mph-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .machine-showcase { padding: 30px 15px 60px; }

    .machine-container {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .machine-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        height: 100vh;
        z-index: 2001;
        transition: left 0.4s ease;
        border-radius: 0;
        padding-top: 80px;
        overflow-y: auto;
    }

    .machine-sidebar.active { left: 0; }

    .machine-toggle-btn { display: flex; }

    .display-panel { padding: 25px 18px; }

    .panel-title { font-size: 1.6rem; }

    .slider-wrapper { height: 240px; }

    .video-preview-wrapper { height: 200px; }

    .ov-grid { grid-template-columns: 1fr; }

    .demo-features { grid-template-columns: 1fr 1fr; }

    .mbc-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .demo-features { grid-template-columns: 1fr; }
    .mph-divider   { display: none; }
}
