* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #008b44 0%, #3a7d42 100%);
    color: white;
    padding: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.header-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    color: #F7C951;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section h2 {
    color: #008b44;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #F7C951;
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.intro-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    transition: all 0.3s;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.intro-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.intro-card h3 {
    color: #008b44;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.model-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: all 0.3s;
}

.model-card:hover {
    border-color: #008b44;
    box-shadow: 0 8px 16px rgba(71, 158, 82, 0.2);
}

.model-card.featured {
    border-color: #008b44;
    border-width: 3px;
    box-shadow: 0 4px 8px rgba(71, 158, 82, 0.2);
}

.model-card h3 {
    color: #008b44;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #F7C951;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8em;
}

.spec-badge {
    display: inline-block;
    background: #e9ecef;
    color: #008b44;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
    margin: 20px 0;
}

.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.specs-list li:last-child {
    border-bottom: none;
}

.best-use {
    background: #f0f8f0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #008b44;
}

/* Brand Tabs */
.brand-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #008b44;
    color: #008b44;
}

.tab-btn.active {
    background: #008b44;
    border-color: #008b44;
    color: white;
}

/* Setup Guide Content */
.setup-guide {
    display: none;
}

.setup-guide.active {
    display: block;
}

.guide-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.guide-section h3 {
    color: #008b44;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.diagram-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.diagram {
    max-width: 100%;
    margin: 20px 0;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

.stock-recipe {
    background: #fff9e6;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #F7C951;
}

.stock-recipe h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.recipe-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recipe-item:last-child {
    border-bottom: none;
}

.injection-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.injection-table th {
    background: #008b44;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
}

.injection-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

.injection-table tbody tr:hover {
    background: #f0f8f0;
}

.stage-veg {
    background: #e8f5e9;
}

.stage-bloom {
    background: #fff3e0;
}

.stage-flush {
    background: #e1f5fe;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-card {
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid;
}

.tip-card.error {
    background: #ffebee;
    border-color: #ef5350;
}

.tip-card.success {
    background: #e8f5e9;
    border-color: #66bb6a;
}

.tip-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Advanced Section */
.advanced-content {
    display: grid;
    gap: 25px;
}

.tip-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #008b44;
}

.tip-block h3 {
    color: #008b44;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.tip-block ul {
    margin-left: 20px;
    margin-top: 10px;
}

.tip-block li {
    margin: 10px 0;
}

/* Calculator */
.calculator {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.calc-input-group {
    margin: 20px 0;
}

.calc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.calc-btn {
    padding: 15px 40px;
    background: #008b44;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: #3a7d42;
    transform: scale(1.05);
}

.calc-result {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #008b44;
    display: none;
}

.calc-result.show {
    display: block;
}

.highlight {
    background: #fff9e6;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .brand-tabs, .nav-link, footer, .calc-btn {
        display: none !important;
    }
    
    .setup-guide {
        display: block !important;
    }
    
    section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .intro-grid,
    .models-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        min-width: 100%;
    }
    
    section {
        padding: 20px;
    }
    
    .diagram {
        font-size: 11px;
    }
}
