/* =========================================================================
   MACHINE DETAIL PAGE - DYNAMICALLY BLENDED LUXURY GLASS SHOWCASE
   ========================================================================= */

.machine-detail-page {
    position: relative;
    padding-bottom: 80px;
    min-height: 100vh;
    overflow: hidden;
    transition: background 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: detailPageEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes detailPageEntrance {
    0% {
        opacity: 0.3;
        transform: scale(0.985);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Giant Background Watermark Text */
.machine-watermark {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 11vw, 13rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color, #0f172a) 30%, var(--glow-color, #1e293b) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--glow-color, rgba(15, 23, 42, 0.1)));
    opacity: 0.12;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    will-change: transform, opacity;
}

/* Top Back Navigation Bar - Perfectly Aligned */
.detail-top-bar {
    position: relative;
    z-index: 100;
    padding-top: 110px;
    padding-bottom: 20px;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.detail-back-btn:hover {
    color: #ffffff !important;
    background: var(--accent-color, #2563eb) !important;
    border-color: var(--accent-color, #2563eb) !important;
    transform: translateX(-4px);
    box-shadow: 0 6px 20px var(--glow-color, rgba(37, 99, 235, 0.3)) !important;
}

.detail-back-btn svg {
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.detail-back-btn:hover svg {
    transform: translateX(-3px);
}

/* 1. Hero Section - Structured 2-Card Layout */
.detail-hero-section {
    position: relative;
    z-index: 10;
    padding: 0 0 40px;
    background: transparent;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Left: Product Showcase (No Card Background, Clean Transparent) */
.machine-image-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 360px;
    padding: 20px;
}

.machine-detail-img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 35px rgba(15, 23, 42, 0.15)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
    /* float animation removed — stays still */
}

/* Right: Structured Machine Info Card - Frosted Glass Blended */
.machine-content-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 26px 30px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #0f172a;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.machine-content-card:hover {
    border-color: var(--theme-border-color, #2563eb);
    box-shadow: 0 20px 55px var(--theme-shadow-color, rgba(0, 0, 0, 0.05));
}

.content-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-top > * {
    margin: 0;
    padding-top: 0;
}

.content-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Feature Highlights (fallback when no specs) */
.feature-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 13px 15px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.feature-highlight-item:hover {
    border-color: var(--theme-border-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--theme-shadow-color, rgba(0, 0, 0, 0.03));
}

.feature-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-svg-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 7px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}

.feature-svg-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-text strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.feature-text span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

/* Trust Badges Row */
.trust-badges-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.trust-badge svg {
    stroke: var(--accent-color, #2563eb);
    flex-shrink: 0;
}

/* Category Pill Badge */
.detail-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0f172a;
    margin: 0;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.detail-type-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--accent-color, #2563eb);
    box-shadow: 0 0 8px var(--accent-color, #2563eb);
}

.detail-machine-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    letter-spacing: -0.02em;
}

.detail-machine-desc {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* Spec Pill Badges Grid */
.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

.detail-spec-pill {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
    transition: all 0.3s ease;
}

.detail-spec-pill:hover {
    border-color: var(--theme-border-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--theme-shadow-color, rgba(0, 0, 0, 0.03));
}

.detail-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.detail-spec-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

/* Action Buttons */
.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 1;
    visibility: visible;
}

.share-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    visibility: visible;
}

.btn-detail-primary {
    background: var(--accent-color, #2563eb) !important;
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.96rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--accent-color, #2563eb) !important;
    box-shadow: 0 8px 25px var(--glow-color, rgba(37, 99, 235, 0.35)) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-primary svg {
    transition: transform 0.3s ease;
}

.btn-detail-primary:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--glow-color, rgba(37, 99, 235, 0.45)) !important;
    color: #ffffff !important;
}

.btn-detail-primary:hover svg {
    transform: translateX(4px);
}

.btn-detail-secondary {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #0f172a !important;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-secondary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--accent-color, #2563eb) !important;
    color: var(--accent-color, #2563eb) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-color, rgba(37, 99, 235, 0.2)) !important;
}

/* Social Share Links */
.share-section span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.78rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.share-icon:hover {
    background: var(--accent-color, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--accent-color, #2563eb) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--glow-color, rgba(37, 99, 235, 0.3)) !important;
}

/* 2. Overview & Technical Specs Section */
.description-section {
    position: relative;
    z-index: 10;
    padding: 35px 0 50px;
}

.description-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.machine-text-description {
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.full-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.full-spec-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    transition: all 0.3s ease;
}

.full-spec-box:hover {
    border-color: var(--theme-border-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--theme-shadow-color, rgba(0, 0, 0, 0.04));
}

.full-spec-box .label {
    font-weight: 800;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.full-spec-box .value {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1.45;
}

/* 3. Bottom Section (Form & Stats) */
.bottom-section {
    position: relative;
    z-index: 10;
    padding: 20px 0 60px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.quote-form-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.04);
    transition: all 0.35s ease;
}

.quote-form-card:hover {
    border-color: var(--theme-border-color, #2563eb);
    box-shadow: 0 20px 55px var(--theme-shadow-color, rgba(0, 0, 0, 0.05));
}

.quote-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 18px;
}

.quote-input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.quote-input:focus {
    background: #ffffff;
    border-color: var(--accent-color, #2563eb) !important;
    box-shadow: 0 0 0 4px var(--glow-color, rgba(37, 99, 235, 0.15)) !important;
}

.quote-input::placeholder {
    color: #94a3b8;
}

textarea.quote-input {
    resize: none;
}

.quote-btn {
    width: 100%;
    background: var(--accent-color, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 10px 30px var(--glow-color, rgba(37, 99, 235, 0.35)) !important;
}

.quote-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px var(--glow-color, rgba(37, 99, 235, 0.45)) !important;
}

.stats-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.stats-content p {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 30px;
    font-size: 1.02rem;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 26px 14px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.stat-card-box:hover {
    border-color: var(--theme-border-color, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--theme-shadow-color, rgba(0, 0, 0, 0.05));
}

.stat-card-box .stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-card-box .stat-text {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .detail-top-bar {
        padding-top: 100px;
        padding-bottom: 15px;
    }
    .detail-hero-grid, .bottom-grid, .full-specs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .machine-showcase-card {
        min-height: auto;
        padding: 24px;
    }
    .machine-content-card {
        padding: 28px 24px;
    }
    .detail-machine-title {
        font-size: 2rem !important;
    }
    .full-spec-box {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 20px;
    }
    .machine-watermark {
        font-size: 22vw !important;
    }
}

@media (max-width: 768px) {
    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stats-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .btn-detail-primary, .btn-detail-secondary {
        width: 100%;
        justify-content: center;
    }
    .share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
