/**
 * Pricimo Value Ratio Calculator Styles
 * Version: 1.0.0
 */

/* Container */
.pricimo-calculator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Light theme (default) */
.pricimo-light {
    background: #ffffff;
    color: #1A1A2E;
}

/* Dark theme */
.pricimo-dark {
    background: #1A1A2E;
    color: #ffffff;
}

.pricimo-dark .pricimo-field label {
    color: #E5E7EB;
}

.pricimo-dark .pricimo-field input,
.pricimo-dark .pricimo-field select {
    background: #2D2D44;
    border-color: #3D3D5C;
    color: #ffffff;
}

.pricimo-dark .pricimo-field input::placeholder {
    color: #9CA3AF;
}

/* Header */
.pricimo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricimo-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #16A085;
}

.pricimo-header p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
}

/* Form */
.pricimo-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pricimo-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricimo-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.pricimo-field input,
.pricimo-field select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #F9FAFB;
}

.pricimo-field input:focus,
.pricimo-field select:focus {
    outline: none;
    border-color: #16A085;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.15);
    background: #ffffff;
}

.pricimo-field input::placeholder {
    color: #9CA3AF;
}

.pricimo-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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 1rem center;
    padding-right: 3rem;
}

/* Button */
.pricimo-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #16A085 0%, #1ABC9C 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.pricimo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
}

.pricimo-button:active {
    transform: translateY(0);
}

.pricimo-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pricimo-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Spinner */
.pricimo-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pricimo-spin 0.8s linear infinite;
}

@keyframes pricimo-spin {
    to { transform: rotate(360deg); }
}

/* Results */
.pricimo-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #F9FAFB;
    animation: pricimo-fadeIn 0.3s ease-out;
}

.pricimo-dark .pricimo-result {
    background: #2D2D44;
}

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

/* Score Section */
.pricimo-score-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.pricimo-dark .pricimo-score-section {
    border-bottom-color: #3D3D5C;
}

.pricimo-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricimo-score-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.pricimo-score-info {
    flex: 1;
}

.pricimo-place-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.pricimo-place-meta {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 0.5rem 0;
}

.pricimo-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary */
.pricimo-summary {
    margin-bottom: 1.5rem;
}

.pricimo-summary p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.pricimo-dark .pricimo-summary p {
    color: #D1D5DB;
}

/* Pros and Cons */
.pricimo-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .pricimo-pros-cons {
        grid-template-columns: 1fr;
    }
}

.pricimo-pros,
.pricimo-cons {
    padding: 1rem;
    border-radius: 8px;
}

.pricimo-pros {
    background: rgba(39, 174, 96, 0.1);
}

.pricimo-cons {
    background: rgba(231, 76, 60, 0.1);
}

.pricimo-pros h4,
.pricimo-cons h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.pricimo-pros h4 {
    color: #27AE60;
}

.pricimo-cons h4 {
    color: #E74C3C;
}

.pricimo-pros ul,
.pricimo-cons ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricimo-pros li,
.pricimo-cons li {
    font-size: 0.875rem;
    padding: 0.25rem 0;
    color: #374151;
}

.pricimo-dark .pricimo-pros li,
.pricimo-dark .pricimo-cons li {
    color: #D1D5DB;
}

.pricimo-pros li::before {
    content: "✓ ";
    color: #27AE60;
    font-weight: bold;
}

.pricimo-cons li::before {
    content: "✗ ";
    color: #E74C3C;
    font-weight: bold;
}

/* Tip Box */
.pricimo-tip {
    padding: 1rem;
    background: rgba(22, 160, 133, 0.1);
    border-left: 4px solid #16A085;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.pricimo-tip h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #16A085;
    margin: 0 0 0.5rem 0;
}

.pricimo-tip p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
}

.pricimo-dark .pricimo-tip p {
    color: #D1D5DB;
}

/* Verdict */
.pricimo-verdict {
    text-align: center;
    padding: 1rem;
    background: #1A1A2E;
    border-radius: 8px;
}

.pricimo-verdict p {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.pricimo-light .pricimo-verdict {
    background: #1A1A2E;
}

.pricimo-dark .pricimo-verdict {
    background: #16A085;
}

/* Cached indicator */
.pricimo-cached {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 1rem;
}

/* Error */
.pricimo-error {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #E74C3C;
    border-radius: 8px;
    color: #E74C3C;
    text-align: center;
    font-size: 0.875rem;
}

/* Footer */
.pricimo-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.pricimo-dark .pricimo-footer {
    border-top-color: #3D3D5C;
}

.pricimo-footer p {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin: 0;
}

.pricimo-footer a {
    color: #16A085;
    text-decoration: none;
    font-weight: 600;
}

.pricimo-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .pricimo-calculator {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .pricimo-header h2 {
        font-size: 1.5rem;
    }
    
    .pricimo-score-section {
        flex-direction: column;
        text-align: center;
    }
    
    .pricimo-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .pricimo-score-number {
        font-size: 2.5rem;
    }
}
