/* CompressMyPhoto - Gradient Spectrum Design System */

/* CSS Variables for Consistent Theming */
:root {
    /* Professional Blue Color System */
    --primary-blue: #0061eb;     /* Primary Blue */
    --blue-secondary: #0051c7;   /* Darker Blue */
    --primary-green: #0061eb;    /* Aliased to blue for compatibility */
    --green-secondary: #0051c7;  /* Aliased to blue for compatibility */
    --background-light: #f5f5fa; /* Warmer tinted background */
    --success-green: #0061eb;    /* Aliased to blue for compatibility */
    --success-green-dark: #0051c7; /* Aliased to blue for compatibility */
    --error-red: #EF4444;        /* Softer Error Red */
    --text-gray: #6B7280;        /* Neutral Gray Text */
    --text-dark: #111827;        /* Almost Black Text */
    
    /* Clean Professional Gradients */
    --gradient-start: #0061eb;
    --gradient-mid: #0051c7;
    --gradient-end: #0041a3;
    --navy: #0041a3;
    
    /* Simplified Professional Gradients */
    --primary-gradient: linear-gradient(135deg, #0061eb 0%, #0051c7 100%);
    --primary-gradient-full: linear-gradient(135deg, #3380ff 0%, #0061eb 50%, #0051c7 100%);
    --success-gradient: linear-gradient(135deg, #0061eb 0%, #0051c7 100%);
    --vibrant-gradient: linear-gradient(135deg, #0061eb 0%, #0051c7 100%);
    --hero-gradient: linear-gradient(135deg, #0061eb 0%, #0051c7 100%);
    --subtle-gradient: linear-gradient(135deg, rgba(0, 97, 235, 0.03) 0%, transparent 100%);
    --card-gradient: linear-gradient(145deg, #f5f5fa 0%, #f5f5fa 100%);
    --hover-gradient: linear-gradient(135deg, #0061eb 0%, #0051c7 100%);
    --navy-blue-gradient: linear-gradient(135deg, #0051c7 0%, #0061eb 100%);
    --accent-red: #EF4444;
    --error-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --primary-gradient-start: #0061eb;
    
    /* Solid Colors */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --background: #f5f5fa;
    --surface: #f5f5fa;
    --border: #E5E7EB;
    
    /* Shadows - Flatter, more subtle */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
    --shadow-gradient: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f5f5fa;  /* Soft blue-tinted background */
    min-height: 100vh;
    position: relative;
}

/* Playful Background Pattern - Subtle dots and gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 97, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 97, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Warm Tinted Background with Blue Accent */
header {
    background: #f5f5fa;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Gradient Logo Icon */
.logo-icon {
    width: 42px;
    height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

/* If using image logo */
.logo {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 97, 235, 0.2));
}

/* Brand Text */
header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4084ff;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: -2px;
}

/* Main Content Area */
.content-wrapper {
    display: flex;
    gap: 24px;
    margin: 32px auto;
    position: relative;
}

/* Upload Section - Main Card */
.upload-section {
    flex: 1;
    background: #f5f5fa;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Gradient Border Effect */
.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

/* Instructions */
.instructions-compact {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--subtle-gradient);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.instructions-compact p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.instructions-compact a {
    color: var(--success-green);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.instructions-compact a:hover {
    opacity: 0.8;
}

/* Upload Area - More Playful */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f5f5fa 0%, #f5f5fa 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 97, 235, 0.03) 0%, rgba(0, 97, 235, 0.01) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 97, 235, 0.1);
}

.upload-area.drag-over {
    border-color: var(--primary-blue);
    background: rgba(0, 97, 235, 0.05);
    transform: scale(1.01);
}

/* Upload Icon with Gradient */
.upload-icon svg {
    width: 64px;
    height: 64px;
    stroke: url(#gradient);
    stroke-width: 2;
    margin-bottom: 16px;
}

/* Add this SVG gradient definition in your HTML */
.gradient-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.upload-area h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Browse Button with Gradient */
.browse-btn {
    background: var(--success-green);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 97, 235, 0.15);
    position: relative;
    transform: translateY(0);
}

.browse-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.browse-btn:hover {
    background: var(--success-green-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 97, 235, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(9, 129, 74, 0.25);
}

.browse-btn:hover::before {
    left: 100%;
}

.browse-btn:active {
    transform: translateY(0) scale(0.98);
}

.browse-btn:active {
    transform: translateY(0);
}

/* Upload Info */
.upload-info {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 12px;
}

/* Format Badges with Gradient Borders */
.formats-supported {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.format-badge {
    padding: 6px 12px;
    background: #F0F7FF;
    border: 1px solid #93C5FD;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Options Section */
.options-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: var(--success-green);
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.option-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.resize-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: #f5f5fa;
    cursor: pointer;
    transition: border-color 0.2s;
}

.resize-select:focus {
    outline: none;
    border-color: var(--gradient-mid);
}

.custom-width-input {
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    width: 100%;
    max-width: 300px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toggle Switch with Gradient */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #f5f5fa;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .slider {
    transform: translateX(24px);
}

.toggle-switch input:checked ~ .toggle-switch {
    background: var(--primary-gradient);
}

/* Results Section - Clean Modern Style */
.results-section {
    margin-top: 2rem;
    text-align: center;
    /* Removed animation - using direct page redirect instead */
}

.results-success {
    padding: 3rem 2rem;
    background: #f5f5fa;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.results-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    letter-spacing: -0.02em;
}

.results-title svg {
    animation: check-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes check-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Savings Circle - Polished SVG Design */
.savings-circle {
    width: 170px;
    height: 170px;
    margin: 2.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 30px rgba(29, 52, 97, 0.15));
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke: #f0f4f8;
    stroke-width: 12;
}

.progress-ring-fill {
    stroke-width: 12;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-linecap: round;
    animation: progress-appear 1s ease-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes progress-appear {
    from {
        stroke-dasharray: 0 478;
    }
    to {
        stroke-dasharray: var(--progress-value) 478;
    }
}

.progress-ring-fill.animate {
    animation: progress-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.savings-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.savings-percent {
    font-size: 3rem;
    font-weight: 800;
    color: var(--success-green);
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    opacity: 0;
    animation: percent-fade-in 0.3s ease-out 0.8s forwards;
}

@keyframes percent-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes count-up {
    from {
        --num: 0;
    }
}

.savings-percent-symbol {
    font-size: 1.75rem;
    margin-left: 0.2rem;
    font-weight: 600;
}

.savings-label {
    font-size: 0.9rem;
    color: #64748B;
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Size Comparison - Polished Stats */
.size-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.size-stat {
    text-align: center;
    flex: 1;
}

.size-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.size-value {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.size-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Primary Download Button - Polished */
/* Primary Download Button - Matte */
.primary-download {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 1.125rem 3rem;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    margin: 1.75rem 0;
    box-shadow: 0 2px 4px rgba(9, 129, 74, 0.2);
    position: relative;
}

.primary-download:hover {
    background: var(--success-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(9, 129, 74, 0.25);
}

.primary-download:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(9, 129, 74, 0.15);
}

/* Continue Section */
.continue-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.continue-title {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tool-suggestions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f5f5fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.tool-card:hover {
    border-color: var(--success-green);
    background: rgba(0, 97, 235, 0.05);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 97, 235, 0.12);
}

.tool-card svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-blue);
}

/* Secondary Button */
.secondary-btn {
    background: #f5f5fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--success-green);
    color: var(--success-green);
}

/* Or Divider */
.or-divider {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: -0.5rem 0 0.5rem;
    font-style: italic;
}

/* Adjust Quality Link */
.adjust-quality-link {
    margin-bottom: 1.5rem;
}

.adjust-quality-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dotted #6b7280;
    transition: color 0.2s;
}

.adjust-quality-link a:hover {
    color: var(--success-green);
    border-bottom-color: var(--success-green);
}

/* Legacy Download Button - Keeping for compatibility */
.download-btn {
    display: none; /* Hidden since we're using single download now */
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gradient);
}

/* Processing Animation - Modern Circular Spinner */
.progress-section {
    padding: 4rem 2rem;
    text-align: center;
}

.progress-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Upload Progress Styles */
.upload-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.upload-stats {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Fullscreen overlay styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5fa;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.progress-content {
    text-align: center;
}

.progress-content h2 {
    color: #2d2d36;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.cancel-btn {
    margin-top: 2rem;
    padding: 12px 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.fullscreen-results {
    background: #f5f5fa;
    padding: 3rem;
}

.upload-progress-bar {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: #f0f4f8;
    border-radius: 4px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.upload-percent {
    margin: 2rem 0;
}

.upload-percent .percent-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.upload-percent .percent-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.circular-spinner {
    width: 68px;
    height: 68px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-track {
    stroke: #f0f4f8;
    stroke-width: 8;
    fill: none;
}

.spinner-fill {
    stroke: var(--primary-blue);
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 150;
    animation: spin-rotate 1.4s linear infinite;
    transform-origin: center;
}

@keyframes spin-rotate {
    0% {
        transform: rotate(0deg);
        stroke-dashoffset: 150;
    }
    50% {
        stroke-dashoffset: 50;
        stroke: var(--primary-blue);
    }
    100% {
        transform: rotate(360deg);
        stroke-dashoffset: 150;
    }
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Full screen processing overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

/* Background decoration for fullscreen overlay */
.fullscreen-overlay::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 97, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.fullscreen-overlay::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 97, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.processing-container {
    text-align: center;
    padding: 40px;
}

.processing-container .circular-spinner {
    margin: 0 auto 2rem;
}

.processing-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.processing-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Upload Progress Screen */
.upload-progress-container {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    width: 90%;
}

.upload-progress-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.upload-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 30px;
}

.upload-progress-bar-container {
    margin-bottom: 24px;
}

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

.upload-progress-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.upload-percent {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.upload-speed {
    color: var(--text-secondary);
    font-size: 13px;
}

.upload-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f5f5fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.current-file {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.files-count {
    font-size: 13px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Hide old progress bar */
.progress-bar {
    display: none;
}

.progress-fill {
    display: none;
}

/* Premium Features Section */
.features-premium {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f5f5fa 0%, #f5f5fa 100%);
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Quick Access Bar */
.quick-access-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
}

.quick-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5fa;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s;
    overflow: hidden;
}

.quick-link:first-child {
    border-radius: 12px 0 0 12px;
}

.quick-link:last-child {
    border-radius: 0 12px 12px 0;
}

.quick-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: height 0.2s;
}

.quick-gradient.instagram {
    background: linear-gradient(90deg, #833AB4, #FD1D1D, #FCAF45);
}

.quick-gradient.discord {
    background: linear-gradient(90deg, #5865F2, #7289DA);
}


.quick-link:hover .quick-gradient {
    height: 100%;
    opacity: 0.1;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.quick-text {
    position: relative;
    z-index: 1;
}

/* Glass Morphism Stats Grid */
.stats-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-glass {
    background: #f5f5fa;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 97, 235, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.stat-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.stat-glass .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-green);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-glass .stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.stat-bar {
    height: 4px;
    background: #F1F5F9;
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: width 1s ease;
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.highlight-card {
    padding: 32px;
    background: #f5f5fa;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F7FF;
    border-radius: 12px;
    margin-bottom: 20px;
}

.highlight-icon svg {
    stroke: url(#gradient);
}

.highlight-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Mobile Responsive for Features */
@media (max-width: 768px) {
    .features-title {
        font-size: 1.875rem;
    }
    
    .features-3d-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trust-section {
        gap: 32px;
    }
}

/* Footer - Modern Multi-Column Design - Full Width */
.main-footer {
    background: #383F51;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column {
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Footer Bottom Section */
.footer-bottom {
    padding: 30px 40px;
    background: #2C3341;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright p {
    margin: 0;
    color: #a0a0a0;
    font-size: 14px;
}

.footer-tagline {
    margin-top: 5px;
    font-size: 12px;
    color: #808080;
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-select {
    background: #424859;
    border: 1px solid #515869;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-select:hover {
    border-color: #616879;
    background: #4A5163;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Sister site link */
.sister-site {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b8b8;
    font-size: 0.875rem;
}

.sister-site a {
    color: var(--success-green);
    text-decoration: none;
    font-weight: 500;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: var(--text-primary);
}

.legal-content h1 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p, 
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .upload-area {
        padding: 32px 16px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 250, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: transparent;
    background: var(--primary-gradient);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes success-pulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-animation {
    animation: success-pulse 0.5s ease;
}

/* Ad Placeholder Styling */
.ad-placeholder {
    background: #F0F7FF;
    position: relative;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 8px;
    box-shadow: none;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

/* Specific ad sizes */
.ad-banner-top .ad-placeholder {
    min-height: 90px;
    margin: 20px 0;
}

.ad-banner-middle .ad-placeholder {
    min-height: 280px;
    margin: 24px 0;
}

.sidebar-ad .ad-placeholder {
    min-height: 250px;
}

.mobile-sticky-ad .ad-placeholder {
    min-height: 50px;
}

/* Processing Screen */
.processing-container {
    width: 90%;
    max-width: 800px;
    background: #f5f5fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

/* Background decoration for processing screen */
.processing-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 97, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.processing-container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 97, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.processing-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.processing-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.files-processing-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
}

.file-processing-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f5f5fa;
    transition: all 0.3s ease;
}

.file-processing-item.completed {
    background: #f0fdf4;
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
}

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

.file-name {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-status {
    font-size: 13px;
    color: #6b7280;
}

.file-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-spinner {
    position: relative;
}

.file-size {
    font-size: 13px;
    color: #6b7280;
    min-width: 60px;
    text-align: right;
}

.processing-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.cancel-processing-btn {
    padding: 8px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-processing-btn:hover {
    background: #e5e7eb;
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer Mobile Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-language {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-column {
        text-align: left;
    }
}

/* Playful Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Apply animations to elements */
.file-card {
    animation: fadeInUp 0.4s ease-out;
}

.btn-primary, .browse-btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .browse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after, .browse-btn:active::after {
    width: 300px;
    height: 300px;
}