/* ==========================================================================
   Octa Calculator - Deck Calculator Specific Styles
   ========================================================================== */

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

@media (max-width: 700px) {
    .deck-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;
}

/* Deck Visualizer Container */
.deck-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: 320px;
    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-house-wall {
    stroke: #64748b;
    stroke-width: 4;
    stroke-linecap: round;
}

.svg-beam {
    fill: #b45309;
    stroke: #78350f;
    stroke-width: 1.5;
}

.svg-joist {
    stroke: #d97706;
    stroke-width: 2;
    stroke-linecap: round;
}

.svg-ledger {
    stroke: #78350f;
    stroke-width: 3;
    stroke-linecap: round;
}

.svg-deck-board {
    fill: #f59e0b;
    stroke: #d97706;
    stroke-width: 0.75;
}

.svg-board-composite {
    fill: #94a3b8;
    stroke: #64748b;
}

.svg-board-cedar {
    fill: #f97316;
    stroke: #c2410c;
}

.svg-board-redwood {
    fill: #b91c1c;
    stroke: #7f1d1d;
}

.svg-support-post {
    fill: #78350f;
    stroke: #451a03;
    stroke-width: 1;
}

.svg-footing-concrete {
    fill: #cbd5e1;
    stroke: #94a3b8;
    stroke-width: 1;
    opacity: 0.8;
}

.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;
}

/* Monospace formula block *//* Optimizer Table Styles */
.optimizer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.optimizer-table th, .optimizer-table td {
    padding: 0.65rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.optimizer-table th {
    font-weight: 700;
    color: var(--color-secondary);
    background-color: var(--color-bg-base);
}

.optimizer-row-recommended {
    background-color: rgba(22, 163, 74, 0.08);
    font-weight: 600;
    border-left: 3px solid #16a34a;
}

/* 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,
    #deck-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,
    .deck-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 - Deck Materials & Cost Estimation Report\nDate: " attr(data-print-date) "\nURL: https://octacalculator.com/construction/deck-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;
    }
}
