/* Plant Spacing Calculator Styles */
.psc-calculator {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.psc-main-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.psc-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
}

.psc-input-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.psc-input-group:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.psc-input-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.psc-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.psc-input-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.psc-form-field {
    margin-bottom: 1rem;
}

.psc-form-field:last-child {
    margin-bottom: 0;
}

.psc-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.psc-input,
.psc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    
}

.psc-input:focus,
.psc-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.psc-input::placeholder {
    color: #94a3b8;
}

.psc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.psc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.psc-custom-spacing {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.psc-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.psc-preset-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    
}

.psc-preset-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.psc-preset-btn:active {
    transform: translateY(0);
}

.psc-preset-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.psc-preset-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.psc-preset-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.psc-preset-spacing {
    font-size: 0.75rem;
    color: #64748b;
}

.psc-results {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 2rem 1.5rem;
    color: #ffffff;
}

.psc-results-header {
    margin-bottom: 1.5rem;
}

.psc-results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.psc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.psc-result-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.psc-result-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.psc-result-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.psc-result-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.psc-visualization {
    padding: 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.psc-visual-header {
    margin-bottom: 1rem;
}

.psc-visual-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.psc-visual-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psc-placeholder {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.psc-grid-container {
    display: grid;
    gap: 4px;
    max-width: 100%;
    max-height: 400px;
    overflow: auto;
    margin: 0 auto;
}

.psc-grid-cell {
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.psc-grid-cell.psc-plant {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.psc-grid-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.psc-info-card {
    padding: 1.5rem;
    background: #f0f9ff;
    border-top: 1px solid #e2e8f0;
    border-left: 4px solid #0ea5e9;
}

.psc-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psc-info-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.psc-info-content {
    color: #475569;
    line-height: 1.6;
}

.psc-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.psc-info-content p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .psc-inputs {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .psc-input-group {
        padding: 1.25rem;
    }
    
    .psc-form-row {
        grid-template-columns: 1fr;
    }
    
    .psc-presets {
        grid-template-columns: 1fr;
    }
    
    .psc-results {
        padding: 1.5rem 1rem;
    }
    
    .psc-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .psc-result-value {
        font-size: 1.75rem;
    }
    
    .psc-visual-container {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    .psc-grid-cell {
        width: 16px;
        height: 16px;
    }
    
    .psc-info-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .psc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .psc-result-value {
        font-size: 2rem;
    }
    
    .psc-grid-cell {
        width: 14px;
        height: 14px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .psc-main-card {
        background: #1e293b;
    }
    
    .psc-inputs {
        background: #0f172a;
    }
    
    .psc-input-group {
        background: #1e293b;
        border-color: #334155;
    }
    
    .psc-input,
    .psc-select {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .psc-input-header h3 {
        color: #f1f5f9;
    }
    
    .psc-form-field label {
        color: #cbd5e1;
    }
    
    .psc-preset-btn {
        background: #334155;
        border-color: #475569;
    }
    
    .psc-preset-name {
        color: #f1f5f9;
    }
    
    .psc-visual-container {
        background: #0f172a;
        border-color: #334155;
    }
    
    .psc-grid-cell {
        background: #334155;
    }
    
    .psc-info-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .psc-info-content {
        color: #cbd5e1;
    }
}
