/**
 * interactiveMockup.css — Premium, responsive macOS-styled interactive multi-tabs mockup system
 * Adheres strictly to the CSS rules: zero frameworks, clean responsive styles.
 */

.interactive-mockup {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Tabs Bar centered wrapper */
.mockup-tabs-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Premium Frosted Glass Tabs Bar */
.mockup-tabs-bar {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0 auto 2.5rem auto;
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.mockup-tabs-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Premium Pill Tab Button */
.mockup-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.mockup-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.mockup-tab-btn i,
.mockup-tab-btn svg {
    flex-shrink: 0;
}

/* High-Fidelity macOS Browser Frame with Double Border */
.browser-frame {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.6), 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 20px 60px -15px rgba(0, 0, 0, 0.12),
        0 35px 120px -30px rgba(37, 99, 235, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-frame:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.8), 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 25px 70px -10px rgba(0, 0, 0, 0.15),
        0 40px 140px -20px rgba(37, 99, 235, 0.08);
}

/* Authentic browser header with subtle gradient */
.browser-header {
    display: flex;
    align-items: center;
    height: 3.25rem;
    padding: 0 1.25rem;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
}

/* Window Control Dots with realistic inset styling */
.browser-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.browser-dots .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
}

.browser-dots .dot-red { background: #ff5f56; border: 1px solid #e0443e; }
.browser-dots .dot-yellow { background: #ffbd2e; border: 1px solid #dfa123; }
.browser-dots .dot-green { background: #27c93f; border: 1px solid #1aab29; }

/* Show tiny inner macOS action icons on browser-header hover */
.browser-header:hover .dot-red::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: 700;
    color: #4c0002;
}

.browser-header:hover .dot-yellow::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 8px;
    font-weight: 700;
    color: #5c3e00;
}

.browser-header:hover .dot-green::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: 700;
    color: #024c0e;
}

/* macOS-like Navigation Arrows */
.browser-nav {
    display: flex;
    gap: 0.875rem;
    margin-left: 1.5rem;
}

.browser-nav-btn {
    color: #cbd5e1;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

/* Address Capsule centered perfectly */
.browser-address {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 45%;
    min-width: 260px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.browser-address-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    width: 100%;
}

.browser-address-inner svg {
    color: #10b981; /* Emerald secure padlock */
    flex-shrink: 0;
}

.browser-address-inner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace, sans-serif;
}

.browser-address-inner span strong {
    color: #1e293b;
    font-weight: 500;
}

.browser-address-reload {
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.browser-address-reload:hover {
    color: #475569;
}

/* Browser Content & Views */
.browser-content {
    background: #ffffff;
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

/* Ambient glow elements floating behind browser contents */
.mockup-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.mockup-glow--blue {
    top: -200px;
    left: -200px;
    background: #3b82f6;
}

.mockup-glow--indigo {
    bottom: -250px;
    right: -200px;
    background: #8b5cf6;
}

/* Mockup Switching Views */
.mockup-slides-wrapper {
    display: flex;
    width: 100%;
    transform: translateX(calc(var(--active-index, 0) * -100%));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.mockup-view {
    display: block !important;
    width: 100%;
    flex-shrink: 0;
    opacity: 0.35;
    filter: blur(4px);
    transform: scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-view.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.mockup-view-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 1.25rem 1.25rem;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

/* Responsive adjustments and grid features */

/* "Plus" slide HTML features list */
.more-features-container {
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 1.25rem 1.25rem;
}

.more-features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.more-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.more-features-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.more-features-subtitle {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.more-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 900px;
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-radius: 0.75rem;
}

.feature-icon svg,
.feature-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-card-content {
    text-align: left;
}

.feature-card-content h4 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.feature-card-content p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mockup-tabs-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .mockup-tabs-bar {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 1.5rem;
        padding: 0.375rem 0.5rem;
        gap: 0.25rem;
    }
    
    .mockup-tab-btn {
        flex: 0 0 auto;
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .browser-address {
        display: none;
    }
    
    .browser-nav {
        display: none;
    }
    
    .more-features-container {
        padding: 2rem 1.25rem;
        min-height: auto;
    }
    
    .more-features-title {
        font-size: 1.35rem;
    }
    
    .more-features-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .more-features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
}
