/* ==========================================================================
   Octa Calculator - Retaining Wall Calculator Specific Styles
   ========================================================================== */

/* 2-column layout grid for form sections */
.wall-geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 700px) {
    .wall-geo-grid {
        grid-template-columns: 1fr;
    }
}

.presets-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Retaining Wall Visualizer Container */
.retaining-wall-visualizer-box {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: visible;
}

.visualizer-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.visualizer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* SVG Rendering Elements Styles */
.svg-bg {
    fill: #f8fafc;
}

.svg-exposed-ground {
    fill: #22c55e;
    stroke: #16a34a;
    stroke-width: 1.5;
}

.svg-backfill-ground {
    fill: #a16207;
    stroke: #854d0e;
    stroke-width: 1.5;
}

.svg-retaining-block {
    fill: #94a3b8;
    stroke: #475569;
    stroke-width: 1.5;
}

.svg-retaining-block.buried {
    fill: #cbd5e1;
    stroke: #64748b;
    stroke-dasharray: 2 2;
}

.svg-cap-block {
    fill: #64748b;
    stroke: #334155;
    stroke-width: 1.5;
}

.svg-base-gravel {
    fill: #e2e8f0;
    stroke: #cbd5e1;
    stroke-width: 1;
}

.svg-drainage-gravel {
    fill: #e2e8f0;
    stroke: #cbd5e1;
    stroke-width: 1;
}

.svg-drain-pipe {
    fill: #f8fafc;
    stroke: #475569;
    stroke-width: 2;
}

.svg-geogrid-line {
    stroke: #635bff;
    stroke-dasharray: 4 3;
    stroke-width: 2.5;
}

.svg-arrow-line {
    stroke: #475569;
    stroke-width: 1.5;
    fill: none;
}

.svg-arrow-head {
    fill: #475569;
}

.svg-dim-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    fill: #334155;
    text-anchor: middle;
}

.svg-pattern-gravel {
    fill: #94a3b8;
    opacity: 0.35;
}

/* Monospace formula block *//* Transitions */
.mode-panel {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Overrides */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }
    
    .site-header,
    .breadcrumbs,
    .mobile-nav-toggle,
    .site-footer,
    #retaining-wall-form,
    .presets-card-container,
    .btn,
    .educational-content,
    .tooltip-trigger,
    .calc-app-container > div:first-child,
    #btn-copy, #btn-share, #btn-print,
    .result-metric-card::before,
    .retaining-wall-visualizer-box {
        display: none !important;
    }
    
    .calc-layout-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .calc-layout-grid > div:last-child {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .result-metric-card {
        border: 1.5px solid #000000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .result-number {
        color: #000000 !important;
        font-size: 1.8rem !important;
    }
    
    body::before {
        content: "Octa Calculator - Retaining Wall Estimation Report\nDate: " attr(data-print-date) "\nURL: https://octacalculator.com/construction/retaining-wall-calculator/\n\n";
        white-space: pre-wrap;
        font-weight: bold;
        font-size: 1.2rem;
        display: block;
        margin-bottom: 2rem;
        border-bottom: 2px solid #000000;
        padding-bottom: 0.5rem;
    }
}
