/* Product Strategy Modal Styles */

/* Modal Styles */
.product-strategy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.product-strategy-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.product-strategy-modal-content::-webkit-scrollbar {
    display: none;
}

.product-strategy-modal .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-strategy-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.product-strategy-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.product-strategy-modal .close-modal:hover {
    background: #718096;
}

.product-strategy-modal .modal-body {
    padding: 1rem 2rem 2rem 2rem;
}

.product-strategy-modal .modal-body p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-strategy-modal .input-group {
    margin-bottom: 1.5rem;
}

.product-strategy-modal .input-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.product-strategy-modal .text-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    resize: vertical;
    min-height: 100px;
}

.product-strategy-modal .text-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.product-strategy-modal .input-help {
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.85rem;
}

.product-strategy-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.product-strategy-modal .cancel-btn,
.product-strategy-modal .analyze-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}

.product-strategy-modal .cancel-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.product-strategy-modal .cancel-btn:hover {
    background: #edf2f7;
}

.product-strategy-modal .analyze-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.product-strategy-modal .analyze-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.product-strategy-modal .analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Recent Versions Section */
.recent-versions-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.recent-versions-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.recent-versions-help {
    margin: 0 0 1rem 0;
    color: #718096;
    font-size: 0.9rem;
}

.recent-versions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 1rem;
}

.version-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
    transform: translateY(-1px);
}

.version-info {
    flex: 1;
    min-width: 0;
}

.version-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.version-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #718096;
}

.version-date {
    color: #4a5568;
}

.version-number {
    background: #e2e8f0;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
}

.version-preview {
    flex: 1;
    min-width: 0;
}

.preview-text {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.load-version-btn {
    padding: 0.5rem 1rem;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.load-version-btn:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .product-strategy-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-strategy-modal .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .product-strategy-modal .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .product-strategy-modal .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-strategy-modal .cancel-btn,
    .product-strategy-modal .analyze-btn {
        width: 100%;
    }
    
    .recent-versions-section {
        padding: 1rem;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .version-info,
    .version-preview {
        width: 100%;
    }
    
    .load-version-btn {
        align-self: flex-end;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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