/* Amazon AI Review Generator - Frontend Styles */

.aair-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aair-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.aair-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
    font-weight: 700;
}

.aair-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Main Generator Section */
.aair-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .aair-generator {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Input Section */
.aair-input-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.aair-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e8e8e8;
}

.aair-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.aair-tab-btn:hover {
    color: #333;
}

.aair-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.aair-tab-content {
    display: none;
}

.aair-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aair-input-field,
.aair-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.aair-input-field::placeholder {
    color: #999;
}

.aair-input-field:focus,
.aair-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fafbfc;
}

.form-group small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Options Grid */
.aair-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 480px) {
    .aair-options {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.aair-btn-generate {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aair-btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.aair-btn-generate:active:not(:disabled) {
    transform: translateY(0);
}

.aair-btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Output Section */
.aair-output-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.aair-review-card {
    padding: 2.5rem;
}

/* Product Info */
.review-product-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e8e8e8;
}

.review-product-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    flex-shrink: 0;
}

.review-product-details {
    flex: 1;
}

.review-product-details h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-rating-stars {
    font-size: 18px;
    color: #ffc107;
    letter-spacing: 2px;
}

.review-rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.aair-btn-affiliate {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.aair-btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Review Content */
.review-content {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

.review-content h2 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a1a;
    font-weight: 700;
}

.review-content h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: #333;
    font-weight: 600;
}

.review-content p {
    margin-bottom: 1rem;
}

.review-content ul,
.review-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.review-content li {
    margin-bottom: 0.75rem;
}

.review-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.aair-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aair-btn-primary {
    background: #2563eb;
    color: white;
    flex: 1;
    min-width: 120px;
}

.aair-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.aair-btn-secondary {
    background: #6b7280;
    color: white;
    flex: 1;
    min-width: 120px;
}

.aair-btn-secondary:hover {
    background: #4b5563;
}

.aair-btn-ghost {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

.aair-btn-ghost:hover {
    background: rgba(37, 99, 235, 0.05);
}

@media (max-width: 480px) {
    .review-actions {
        flex-direction: column;
    }
    
    .aair-btn {
        width: 100%;
    }
}

/* Disclaimer */
.review-disclaimer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 6px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
}

.review-disclaimer p {
    margin: 0;
}

/* Error Message */
.aair-error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 14px;
    border-radius: 6px;
    border-left: 4px solid #dc2626;
    margin-top: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

/* Loading State */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Mobile */
@media (max-width: 480px) {
    .aair-container {
        padding: 0 15px;
    }
    
    .aair-header h1 {
        font-size: 1.8rem;
    }
    
    .aair-input-section {
        padding: 1.5rem;
    }
    
    .review-product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .review-product-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
    
    .aair-review-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .aair-input-section,
    .review-actions,
    .aair-error-message {
        display: none;
    }
    
    .aair-container {
        max-width: 100%;
    }
}
