/* Product Promotion Analysis Component Styles */

.product-promotion-analysis {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans SC', sans-serif;
}

/* Header Section */
.promotion-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.promotion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.promotion-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.promotion-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Form Container */
.promotion-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.promotion-form-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.promotion-form-header .material-icons {
    font-size: 2rem;
}

.promotion-form-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Grid Layout */
.promotion-form {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Form Field Styles */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field label .material-icons {
    font-size: 1.1rem;
    color: #6b7280;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Required Field Indicator */
.form-field.required label::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Field Description */
.field-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* Select Options Styling */
.form-field select option {
    padding: 8px;
    background: white;
    color: #374151;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-item-content {
    flex: 1;
}

.checkbox-item-content .checkbox-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.checkbox-item-content .checkbox-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Full Width Fields */
.form-field.full-width {
    grid-column: 1 / -1;
}

/* Button Container */
.promotion-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.promotion-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    min-width: 140px;
}

.promotion-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.promotion-btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.promotion-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.promotion-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.promotion-btn.loading {
    position: relative;
    color: transparent;
}

.promotion-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress Indicator */
.progress-container {
    margin: 20px 0;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

/* Results Section */
.promotion-results {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 30px;
}

.results-header {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-header .material-icons {
    font-size: 2rem;
}

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

.results-content {
    padding: 30px;
}

.result-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.result-section h3 {
    color: #374151;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-section h3 .material-icons {
    color: #667eea;
}

.result-content {
    line-height: 1.6;
    color: #4b5563;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.action-btn.copy {
    background: #3b82f6;
    color: white;
}

.action-btn.copy:hover {
    background: #2563eb;
}

.action-btn.download {
    background: #10b981;
    color: white;
}

.action-btn.download:hover {
    background: #059669;
}

.action-btn.share {
    background: #f59e0b;
    color: white;
}

.action-btn.share:hover {
    background: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-promotion-analysis {
        padding: 15px;
    }
    
    .promotion-header h1 {
        font-size: 2rem;
    }
    
    .promotion-form {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .promotion-buttons {
        flex-direction: column;
        padding: 20px;
    }
    
    .promotion-btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .promotion-header {
        padding: 20px 15px;
    }
    
    .promotion-header h1 {
        font-size: 1.75rem;
    }
    
    .promotion-form-header,
    .results-header {
        padding: 15px 20px;
    }
    
    .promotion-form-header h2,
    .results-header h2 {
        font-size: 1.3rem;
    }
    
    .results-content {
        padding: 20px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .product-promotion-analysis {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .promotion-form-container,
    .promotion-results {
        background: #374151;
        color: #f9fafb;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .form-field input:focus,
    .form-field select:focus,
    .form-field textarea:focus {
        background: #374151;
        border-color: #667eea;
    }
    
    .checkbox-item {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .checkbox-item:hover {
        background: #374151;
    }
    
    .result-section {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .promotion-buttons {
        background: #374151;
        border-color: #6b7280;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Success Animation */
.success-pulse {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
} 