/* Plant Sunlight Needs Calculator Styles */

.sunlight-calculator-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.calculator-header h3 {
    color: #2c4a1e;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.calculator-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.calculator-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.plant-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.plant-select:focus {
    outline: none;
    border-color: #7c9a3f;
    box-shadow: 0 0 0 3px rgba(124, 154, 63, 0.1);
}

.show-sunlight-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2c4a1e 0%, #5a8c35 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-sunlight-btn:hover {
    background: linear-gradient(135deg, #1a2d11 0%, #2c4a1e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 74, 30, 0.3);
}

.show-sunlight-btn:active {
    transform: translateY(0);
}

.sunlight-result {
    min-height: 50px;
}

.result-container {
    background: #f8fdf6;
    border: 2px solid #e2f0db;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.plant-title {
    color: #2c4a1e;
    font-size: 22px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e2f0db;
    padding-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: #7c9a3f;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.sunlight-section,
.placement-section,
.tips-section {
    margin-bottom: 25px;
}

.sunlight-section h4,
.placement-section h4,
.tips-section h4 {
    color: #5a8c35;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sunlight-level {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    min-width: 200px;
}

.sunlight-level.full-sun {
    background: linear-gradient(135deg, #ff9500 0%, #ffb84d 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sunlight-level.partial-sun,
.sunlight-level.partial-shade {
    background: linear-gradient(135deg, #4a90e2 0%, #7bb3f0 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sunlight-level.bright-indirect-light,
.sunlight-level.bright-light {
    background: linear-gradient(135deg, #f5a623 0%, #f8c547 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sunlight-level.low-light,
.sunlight-level.low-to-medium-light,
.sunlight-level.indirect-light {
    background: linear-gradient(135deg, #8e8e93 0%, #b0b0b5 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hours-info {
    color: #5a8c35;
    font-weight: 500;
    font-style: italic;
    margin: 10px 0 0 0;
}

.placement-section {
    background: #fff7e6;
    border: 1px solid #ffe4b3;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ff9500;
}

.placement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.outdoor-placement,
.indoor-placement {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffe4b3;
}

.outdoor-placement h5,
.indoor-placement h5 {
    margin: 0 0 10px 0;
    color: #cc7700;
    font-weight: 600;
    font-size: 14px;
}

.outdoor-placement p,
.indoor-placement p {
    margin: 0;
    color: #8b5a00;
    line-height: 1.4;
    font-size: 14px;
}

.tips-section {
    background: #e8f5e8;
    border: 1px solid #c8e6c8;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #5a8c35;
}

.tips-section h4 {
    color: #2c4a1e;
}

.growing-tips {
    color: #2c4a1e;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    font-style: italic;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sunlight-calculator-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .calculator-header h3 {
        font-size: 20px;
    }
    
    .plant-title {
        font-size: 18px;
    }
    
    .placement-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sunlight-level {
        font-size: 16px;
        padding: 10px 16px;
        min-width: 150px;
    }
    
    .outdoor-placement,
    .indoor-placement {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .sunlight-calculator-container {
        margin: 5px;
        padding: 12px;
    }
    
    .calculator-header h3 {
        font-size: 18px;
    }
    
    .plant-select {
        font-size: 14px;
        padding: 10px 14px;
        padding-right: 40px;
    }
    
    .show-sunlight-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .result-container {
        padding: 20px;
    }
    
    .plant-title {
        font-size: 16px;
    }
    
    .sunlight-section h4,
    .placement-section h4,
    .tips-section h4 {
        font-size: 14px;
    }
    
    .sunlight-level {
        font-size: 14px;
        padding: 8px 12px;
        min-width: 120px;
    }
    
    .category-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Loading state */
.sunlight-calculator-container.loading .show-sunlight-btn {
    background: #ccc;
    cursor: not-allowed;
}

.sunlight-calculator-container.loading .show-sunlight-btn:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Focus states for accessibility */
.plant-select:focus,
.show-sunlight-btn:focus {
    outline: 2px solid #7c9a3f;
    outline-offset: 2px;
}

/* Enhanced visual hierarchy */
.sunlight-section {
    text-align: center;
    padding: 20px;
    background: #fffbf0;
    border-radius: 8px;
    border: 1px solid #f5e6a3;
}

/* Special styling for different light requirements */
.sunlight-level {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.3);
}

/* Print styles */
@media print {
    .sunlight-calculator-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .show-sunlight-btn {
        display: none;
    }
    
    .plant-select {
        border: 1px solid #333;
    }
    
    .result-container {
        page-break-inside: avoid;
    }
    
    .sunlight-level {
        background: #f0f0f0 !important;
        color: #333 !important;
        text-shadow: none !important;
    }
}