/* Ultimate Greenhouse BTU & Heating Calculator - WordPress Plugin Styles */

/* Container */
.ghc-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.ghc-container * {
    box-sizing: border-box;
}

/* Header */
.ghc-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1e8449, #27ae60);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.3);
}

.ghc-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.ghc-icon {
    font-size: 2rem;
}

.ghc-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ghc-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.ghc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.ghc-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.ghc-tab-btn:hover {
    background: #f0f0f0;
    color: #1e8449;
}

.ghc-tab-btn.active {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: white;
    border-color: #1e8449;
    box-shadow: 0 2px 8px rgba(30, 132, 73, 0.3);
}

/* Cards */
.ghc-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ghc-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e8449;
    margin: 0 0 8px 0;
}

.ghc-card-desc {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

/* Dimensions Card */
.ghc-dimensions {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #1e8449;
}

.ghc-calculated-values {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.ghc-calc-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ghc-calc-label {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.ghc-calc-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e8449;
}

/* Input Grid */
.ghc-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ghc-input-group {
    display: flex;
    flex-direction: column;
}

.ghc-input-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.ghc-input-group input,
.ghc-input-group select {
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.ghc-input-group input:focus,
.ghc-input-group select:focus {
    outline: none;
    border-color: #1e8449;
    box-shadow: 0 0 0 3px rgba(30, 132, 73, 0.1);
}

.ghc-input-group input:hover,
.ghc-input-group select:hover {
    border-color: #27ae60;
}

/* Result Box */
.ghc-result-box {
    text-align: center;
    padding: 24px;
    border-radius: 10px;
    margin-top: 24px;
}

.ghc-result-heating {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.ghc-result-cooling {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.ghc-result-cost {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
    flex: 1;
    min-width: 200px;
}

.ghc-result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ghc-result-value {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ghc-result-note {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 8px;
}

/* Cost Results */
.ghc-cost-results {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* Fuel Info */
.ghc-fuel-info {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e8449;
}

.ghc-fuel-info h4 {
    margin: 0 0 12px 0;
    color: #1e8449;
    font-size: 1rem;
}

.ghc-fuel-info ul {
    margin: 0;
    padding-left: 20px;
}

.ghc-fuel-info li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

/* Heater Recommendation */
.ghc-heater-recommendation {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e8449, #27ae60);
    border-radius: 12px;
    color: white;
    margin-bottom: 24px;
}

.ghc-heater-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.ghc-heater-size {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ghc-heater-range {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.ghc-heater-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Heater Options */
.ghc-heater-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ghc-heater-option {
    text-align: center;
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.ghc-heater-option.active {
    border-color: #1e8449;
    background: rgba(30, 132, 73, 0.1);
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.2);
}

.ghc-option-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ghc-option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ghc-option-range {
    font-size: 0.85rem;
    color: #666;
}

/* Tab Panes */
.ghc-tab-pane {
    display: none;
}

.ghc-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Summary */
.ghc-summary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.ghc-summary .ghc-card-title {
    color: white;
}

.ghc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.ghc-summary-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ghc-summary-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ghc-summary-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ghc-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Footer */
.ghc-footer {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

.ghc-footer-text {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.ghc-footer-text strong {
    color: #1e8449;
}

/* Responsive */
@media (max-width: 768px) {
    .ghc-container {
        margin: 10px;
    }

    .ghc-header {
        padding: 20px 15px;
    }

    .ghc-title {
        font-size: 1.5rem;
    }

    .ghc-tabs {
        flex-direction: column;
    }

    .ghc-tab-btn {
        min-width: auto;
    }

    .ghc-card {
        padding: 16px;
    }

    .ghc-input-grid {
        grid-template-columns: 1fr;
    }

    .ghc-result-value {
        font-size: 1.6rem;
    }

    .ghc-heater-recommendation {
        padding: 20px;
    }

    .ghc-heater-size {
        font-size: 1.4rem;
    }

    .ghc-heater-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ghc-cost-results {
        flex-direction: column;
    }

    .ghc-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ghc-title {
        font-size: 1.3rem;
    }

    .ghc-heater-options {
        grid-template-columns: 1fr;
    }

    .ghc-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ghc-calc-item {
        min-width: 100%;
    }
}

/* Accessibility */
.ghc-input-group input:focus,
.ghc-input-group select:focus,
.ghc-tab-btn:focus {
    outline: 2px solid #1e8449;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ghc-container {
        max-width: none;
        margin: 0;
    }

    .ghc-tabs {
        display: none;
    }

    .ghc-tab-pane {
        display: block !important;
        page-break-inside: avoid;
    }

    .ghc-header,
    .ghc-summary,
    .ghc-heater-recommendation {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}