/* ================================
   AI Image Upscale Page Styles
   ================================ */

/* Hero Section */
.hero-upscale {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(15, 25, 20, 1) 50%, rgba(10, 20, 15, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-upscale::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(42, 219, 92, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-upscale__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-upscale__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(42, 219, 92, 0.1);
    border: 1px solid rgba(42, 219, 92, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge__icon {
    width: 16px;
    height: 16px;
}

.hero-upscale__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-upscale__title-accent {
    display: block;
    background: linear-gradient(135deg, #3ef76e 0%, #2adb5c 50%, #1fc44f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-upscale__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-stat__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Upscale Tool */
.upscale-tool {
    padding: 4rem 0;
    background: var(--color-bg);
}

.upscale-tool__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Upload Area */
.upscale-upload {
    margin-bottom: 3rem;
}

.upload-zone {
    background: linear-gradient(145deg, rgba(0, 5, 5, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 219, 92, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover {
    border-color: rgba(42, 219, 92, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 219, 92, 0.15);
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(42, 219, 92, 0.1);
    transform: scale(1.02);
}

.upload-zone__content {
    position: relative;
    z-index: 1;
}

.upload-zone__icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 219, 92, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(42, 219, 92, 0.3);
}

.upload-zone__icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.upload-zone__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.upload-zone__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.upload-zone__browse {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.upload-zone__browse:hover {
    color: #3ef76e;
}

.upload-zone__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.format-badge {
    padding: 0.4rem 0.875rem;
    background: rgba(42, 219, 92, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(42, 219, 92, 0.3);
    font-size: 0.8125rem;
    font-weight: 600;
}

.size-info {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Preview Area */
.upscale-preview {
    animation: fadeInUp 0.5s ease;
}

.upscale-preview.hidden {
    display: none;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-box {
    background: linear-gradient(145deg, rgba(0, 5, 5, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(42, 219, 92, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-box:hover {
    border-color: rgba(42, 219, 92, 0.3);
    box-shadow: 0 8px 24px rgba(42, 219, 92, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(42, 219, 92, 0.1);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.preview-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.preview-resolution {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.preview-image-wrapper {
    position: relative;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.preview-image {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    object-fit: contain;
}

.preview-image:hover {
    transform: scale(1.02);
}

.preview-image.hidden {
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(42, 219, 92, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: linear-gradient(135deg, #2adb5c 0%, #1fc44f 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(42, 219, 92, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 219, 92, 0.4);
}

.btn--secondary {
    background: rgba(42, 219, 92, 0.1);
    color: var(--color-primary);
    border: 2px solid rgba(42, 219, 92, 0.3);
}

.btn--secondary:hover {
    background: rgba(42, 219, 92, 0.2);
    border-color: rgba(42, 219, 92, 0.5);
}

.btn.hidden {
    display: none;
}

/* Processing Info */
.processing-info {
    animation: fadeInUp 0.5s ease;
}

.processing-info.hidden {
    display: none;
}

.info-card {
    background: linear-gradient(145deg, rgba(0, 5, 5, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(42, 219, 92, 0.1);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(5, 15, 10, 1) 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 3rem;
    text-align: center;
}

.features-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(0, 5, 5, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(42, 219, 92, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-card:hover {
    border-color: rgba(42, 219, 92, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 219, 92, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 219, 92, 0.1);
    border: 2px solid rgba(42, 219, 92, 0.3);
    border-radius: 50%;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Notification */
#notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification--success {
    border-color: var(--color-primary);
}

.notification--error {
    border-color: #ef4444;
}

.notification--info {
    border-color: #3b82f6;
}

.notification__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification__text {
    flex: 1;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-upscale__title {
        font-size: 2.5rem;
    }

    .hero-upscale__subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .upload-zone {
        padding: 3rem 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    #notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        min-width: unset;
    }
}

