/* ReviewSnap AI - Stile Frontend */

.reviewsnap-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.reviewsnap-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.reviewsnap-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviewsnap-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.reviewsnap-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Form */
.reviewsnap-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

#reviewsnap-url {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

#reviewsnap-url:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.reviewsnap-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.reviewsnap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

/* Loading */
.reviewsnap-loading {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reviewsnap-loading p {
    color: #666;
    font-size: 14px;
}

/* Error */
.reviewsnap-error {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 12px;
    padding: 16px 20px;
    color: #c33;
    font-size: 14px;
}

/* Results */
.reviewsnap-results {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.result-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.result-image {
    flex-shrink: 0;
}

.result-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.rating-stars {
    color: #FFA41C;
    font-size: 16px;
}

.result-verdict {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.verdict-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.verdict-text {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
}

.result-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 20px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.result-list.pros li {
    border-left: 3px solid #46b450;
}

.result-list.cons li {
    border-left: 3px solid #dc3232;
}

.result-list.issues li {
    border-left: 3px solid #f18500;
}

.result-list.fit li {
    border-left: 3px solid #4A90E2;
}

.result-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-amazon {
    display: inline-block;
    padding: 14px 28px;
    background: #FF9900;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-amazon:hover {
    background: #F08804;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.result-meta {
    font-size: 12px;
    color: #999;
}

/* Features */
.reviewsnap-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.feature {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: #666;
    display: block;
}

/* Footer */
.reviewsnap-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .reviewsnap-container {
        margin: 20px;
    }
    
    .reviewsnap-form-wrapper,
    .reviewsnap-results {
        padding: 25px;
    }
    
    .reviewsnap-input-group {
        flex-direction: column;
    }
    
    .reviewsnap-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-image img {
        margin: 0 auto;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-amazon {
        width: 100%;
        text-align: center;
    }
}

/* Dark theme */
.reviewsnap-container[data-theme="dark"] .reviewsnap-form-wrapper,
.reviewsnap-container[data-theme="dark"] .reviewsnap-results {
    background: #1a1a1a;
    color: #e0e0e0;
}

.reviewsnap-container[data-theme="dark"] .reviewsnap-title,
.reviewsnap-container[data-theme="dark"] .result-title,
.reviewsnap-container[data-theme="dark"] .section-title {
    color: #ffffff;
}

.reviewsnap-container[data-theme="dark"] #reviewsnap-url {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.reviewsnap-container[data-theme="dark"] .result-list li {
    background: #2a2a2a;
    color: #e0e0e0;
}
