/* AI Renamer Pro Frontend Styles */

/* Plans Container */
.ai-renamer-pro-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ai-renamer-pro-plan-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-renamer-pro-plan-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ai-renamer-pro-plan-card h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.ai-renamer-pro-plan-card .price {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
}

.ai-renamer-pro-plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ai-renamer-pro-plan-card ul li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.ai-renamer-pro-plan-card ul li:last-child {
    border-bottom: none;
}

.subscribe-button {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.subscribe-button:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px);
}

/* Renamer Interface */
.ai-renamer-pro-renamer-container,
.ai-renamer-pro-bulk-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-renamer-pro-renamer-container h2,
.ai-renamer-pro-bulk-container h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

#ai-renamer-pro-image-upload,
#ai-renamer-pro-folder-path {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#ai-renamer-pro-image-upload:focus,
#ai-renamer-pro-folder-path:focus {
    border-color: #0073aa;
    outline: none;
}

#ai-renamer-pro-template-select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    background: white;
    margin-left: 10px;
}

#ai-renamer-pro-rename-button,
#ai-renamer-pro-bulk-button {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#ai-renamer-pro-rename-button:hover,
#ai-renamer-pro-bulk-button:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px);
}

#ai-renamer-pro-rename-result,
#ai-renamer-pro-bulk-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#ai-renamer-pro-rename-result.success,
#ai-renamer-pro-bulk-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

#ai-renamer-pro-rename-result.error,
#ai-renamer-pro-bulk-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* User Status */
.ai-renamer-pro-user-status {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-renamer-pro-user-status h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.ai-renamer-pro-user-status p {
    margin: 10px 0;
    font-size: 16px;
}

#ai-renamer-pro-manage-subscription {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#ai-renamer-pro-manage-subscription:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Loading States */
.ai-renamer-pro-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ai-renamer-pro-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: ai-renamer-spin 1s linear infinite;
}

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

/* Progress Bar */
.ai-renamer-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.ai-renamer-progress-fill {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.ai-renamer-progress-text {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-renamer-pro-plans-container {
        grid-template-columns: 1fr;
    }
    
    .ai-renamer-pro-plan-card {
        padding: 20px 15px;
    }
    
    .ai-renamer-pro-renamer-container,
    .ai-renamer-pro-bulk-container {
        padding: 20px;
    }
    
    #ai-renamer-pro-image-upload,
    #ai-renamer-pro-folder-path {
        max-width: 100%;
    }
}

/* Accessibility */
.ai-renamer-pro-plan-card:focus,
.subscribe-button:focus,
#ai-renamer-pro-rename-button:focus,
#ai-renamer-pro-bulk-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animation for cards */
.ai-renamer-pro-plan-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Success/Error Messages */
.ai-renamer-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.ai-renamer-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ai-renamer-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ai-renamer-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

