/* ==================== VIEWPORT-BASED 4-ROW LAYOUT SYSTEM ==================== */
/* This CSS creates a mathematically precise percentage-based layout */
/* that fills 100% of the preview viewport with 4 distinct rows */

/* Main Container - 100% height with breathing room padding */
.preview-viewport-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 4%;
    box-sizing: border-box;
}

/* ==================== ROW 1: TOAST NOTIFICATION (4.5% + 1.5% margin) ==================== */
.preview-row-toast {
    height: 4.5%;
    flex-shrink: 0;
    margin-top: 0.75%;
    margin-bottom: 0.75%;
}

.preview-row-toast > div {
    height: 100%;
    padding: 0 2%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
}

.preview-row-toast svg {
    width: 3%;
    height: 3%;
    min-width: 12px;
    min-height: 12px;
}

.preview-row-toast p {
    font-size: clamp(8px, 0.75vw, 11px);
    line-height: 1;
}

/* ==================== ROW 1: NAVIGATION BAR (7% + margins) ==================== */
.preview-row-nav {
    height: 7%;
    flex-shrink: 0;
    margin-top: 1%;
    margin-bottom: 1%;
    padding: 0 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
}

.preview-nav-logo {
    width: 7%;
    height: 70%;
    min-width: 20px;
    min-height: 20px;
}

.preview-row-nav .brand-text {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1;
}

.preview-row-nav .nav-links {
    gap: 4%;
}

.preview-row-nav .nav-links span {
    font-size: clamp(9px, 0.85vw, 12px);
    line-height: 1;
}

/* ==================== ROW 2: HERO SECTION (42% + 1.5% margin) ==================== */
.preview-row-hero {
    height: 37%;
    flex-shrink: 0;
    margin-bottom: 1%;
    padding: 1.5% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
}

.preview-hero-badge {
    display: none;
}

.preview-hero-badge span {
    font-size: clamp(6px, 0.6vw, 8px);
    line-height: 1;
}

.preview-row-hero h1 {
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.15;
    margin: 0;
}

.preview-row-hero p {
    font-size: clamp(11px, 1.05vw, 14px);
    line-height: 1.25;
    margin: 0;
    margin-bottom: 2%;
}

.preview-hero-button {
    padding: 1.5% 3%;
    gap: 1%;
}

.preview-hero-button span {
    font-size: clamp(9px, 0.9vw, 12px);
    line-height: 1;
    white-space: nowrap;
}

.preview-hero-button svg {
    width: 1.2vw;
    height: 1.2vw;
    min-width: 10px;
    min-height: 10px;
}

/* ==================== ROW 3: FEATURE CARDS (36% + 1.5% margin) ==================== */
.preview-row-cards {
    height: 40%;
    flex-shrink: 0;
    margin-bottom: 1.5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
}

.preview-card {
    padding: 4% 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.preview-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
}

.preview-card-icon {
    width: 16%;
    aspect-ratio: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3%;
}

.preview-card-icon svg {
    width: 65%;
    height: 65%;
}

.preview-card h3 {
    font-size: clamp(15px, 1.55vw, 20px);
    line-height: 1.15;
    margin: 0;
    margin-bottom: 1.5%;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(to right, white, rgb(226, 232, 240), rgb(203, 213, 225));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.preview-card p {
    font-size: clamp(12px, 1.15vw, 15px);
    line-height: 1.3;
    margin: 0;
    color: rgb(226, 232, 240);
}

/* ==================== RESPONSIVE FINE-TUNING ==================== */
/* Adjust for very large screens */
@media (min-width: 1600px) {
    .preview-viewport-container {
        padding: 2.5% 3.5%;
    }
    
    .preview-card-icon {
        width: 20%;
        height: 20%;
    }
}

/* Adjust for tablets */
@media (max-width: 1024px) and (min-width: 768px) {
    .preview-row-toast p {
        font-size: clamp(7px, 0.7vw, 10px);
    }
    
    .preview-row-hero h1 {
        font-size: clamp(14px, 1.6vw, 20px);
    }
}

/* Mobile optimization removed - now handled by mobile-preview.css */

