/* assets/css/plusipix.css */
/* 
 * PlusiPix All-in-One Image Engine
 * Redesigned to match Meta Tags Analyzer theme
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #9c27b0;
    --danger-color: #ff7675;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

/* =========================================
   1. Shared Theme Styles (from Meta Tags Analyzer)
   ========================================= */

.seo-check-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    /* Pull up behind header if transparent */
}

.animated-gradient-text {
    background-image: linear-gradient(to right, #ffffff, #e3d9f1, #d0aaf3, #c4a6f5);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-animation 8s infinite alternate;
    display: inline-block;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.tool-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* backdrop-filter: blur(10px);  Removed to avoid rendering issues with heavy content */
}

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.info-section-premium {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border-radius: 20px;
    padding: 40px;
    border-left: 6px solid #667eea;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
    color: white;
}

.btn-gradient-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   2. PlusiPix Specific Styles
   ========================================= */

.plusipix-wrapper {
    position: relative;
    z-index: 10;
}

/* Upload Section */
.upload-section {
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8faff;
}

.upload-section.active {
    border-color: var(--primary-color);
    background-color: #eef2ff;
    transform: scale(1.01);
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Interactive Elements */
.form-floating>.form-select,
.form-floating>.form-control {
    border-radius: 12px;
    font-weight: 600;
    color: #495057;
}

.form-floating>label {
    font-weight: 500;
}

/* Range Slider Styling */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Advanced Options */
.advanced-options {
    position: relative;
    overflow: hidden;
}

.advanced-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0.3;
}

/* Preview Area */
.preview-container img {
    max-width: 100%;
    border: 4px solid white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border-left: 5px solid var(--success-color);
}

.toast-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Limit Notice - Centered & Refined */
.limit-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 11000;
    text-align: center;
    border: 2px solid var(--danger-color);
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.limit-notice.visible {
    display: block;
    /* Visible when triggered */
    opacity: 1;
}

.close-notice {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #aaa;
}

/* Table Specifics */
.table-hover tbody tr:hover {
    background-color: #f8faff;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Force Font Awesome 6 */
.fa,
.fas,
.fa-solid,
.fab,
.far {
    font-family: "Font Awesome 6 Free" !important;
}
/* =========================================
   3. Utility Classes (Bridge BS4 to BS5)
   ========================================= */

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item i {
    margin-right: 10px;
}

/* Fix for BS4 rounded utilities missing higher values */
.rounded-4 { border-radius: 1.5rem !important; }
.rounded-lg { border-radius: 1rem !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .real-time-stats .col-md-4 {
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    .real-time-stats .col-md-4:last-child {
        border-bottom: none;
    }
}

.supported-formats .badge {
    font-size: 0.8rem;
    font-weight: 600;
}
