/* ===== Image Resizer Page Styles ===== */
/* IMG FLY - converter.css for Resize Tool */

:root {
    --primary-color: #333333;
    --primary-light: #F8F9FA;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --background-color: #FFFFFF;
    --card-background: #FFFFFF;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-yellow: #FFCC00;
    --accent-yellow-hover: #E6B800;
    --accent-yellow-light: rgba(255, 204, 0, 0.1);
    --success: #10B981;
    --error: #EF4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

main {
    flex: 1;
}

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

/* ===== CONVERTER SECTION ===== */
.converter-section {
    padding: 3.5rem 0 0 0;
    background: var(--primary-light);
}

.converter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-yellow-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-badge i {
    font-size: 0.875rem;
    color: var(--accent-yellow-hover);
}

/* Converter Card */
.converter-card {
    background: var(--card-background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

/* Upload Area */
.upload-area {
    padding: 4rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: linear-gradient(180deg, var(--card-background) 0%, var(--primary-light) 100%);
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    pointer-events: none;
}

.upload-area:hover::before,
.upload-area.drag-over::before {
    border-color: var(--accent-yellow);
    background: var(--accent-yellow-light);
}

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

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFB800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
    transition: var(--transition);
}

.upload-area:hover .upload-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 204, 0, 0.4);
}

.upload-icon-wrapper i {
    font-size: 2rem;
    color: var(--text-primary);
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.upload-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.upload-hint {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.upload-hint span {
    color: var(--accent-yellow);
    font-weight: 500;
}

.file-input {
    display: none;
}

/* ===== RESIZE TOOL SPECIFIC STYLES ===== */

/* Preview Area for Resize */
.preview-area {
    display: none;
    padding: 2rem;
}

.preview-area.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Resize Layout - 2 columns */
.resize-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* Image Preview Section */
.image-preview-section {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Add More Button with Premium Tooltip */
.add-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.add-more-btn:hover {
    border-color: var(--accent-yellow);
    background: var(--accent-yellow-light);
}

.add-more-btn:hover .premium-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.premium-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.premium-tooltip-content {
    background: var(--text-primary);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.premium-tooltip-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    transform: rotate(45deg);
}

.premium-tooltip-content i.fa-crown {
    color: var(--accent-yellow);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.premium-tooltip-content strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.premium-tooltip-content p {
    font-size: 0.8125rem;
    color: #9CA3AF;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.premium-tooltip-btn {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.premium-tooltip-btn:hover {
    background: var(--accent-yellow-hover);
}

/* Image Preview Container */
.image-preview-container {
    position: relative;
}

.image-preview-wrapper {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
}

.image-preview-wrapper img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.remove-image-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.remove-image-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Image Info */
.image-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== RESIZE OPTIONS SECTION ===== */
.resize-options-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.options-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

/* Option Groups */
.option-group {
    margin-bottom: 1.25rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.option-field {
    flex: 1;
}

.option-field.full-width {
    width: 100%;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.option-label .tooltip-trigger {
    color: var(--text-secondary);
    cursor: help;
}

.option-label .tooltip-trigger i {
    font-size: 0.75rem;
}

/* Input Styles */
.option-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: white;
}

.option-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px var(--accent-yellow-light);
}

.input-with-unit {
    position: relative;
}

.input-with-suffix {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Aspect Lock Button */
.aspect-lock {
    width: 40px;
    height: 40px;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.aspect-lock:hover {
    border-color: var(--accent-yellow);
    background: var(--accent-yellow-light);
}

.aspect-lock.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-primary);
}

.aspect-lock .tooltip-box {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: var(--text-primary);
    color: white;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    text-align: center;
}

.aspect-lock .tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.aspect-lock:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
}

/* Unit Selector */
.unit-selector-row {
    margin-top: 0.75rem;
}

.unit-selector {
    display: flex;
    gap: 0.375rem;
}

.unit-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.unit-btn:hover {
    border-color: var(--accent-yellow);
    background: var(--accent-yellow-light);
}

.unit-btn.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-primary);
    font-weight: 600;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.select-trigger {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.select-trigger:hover {
    border-color: var(--accent-yellow);
}

.select-trigger i {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.select-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.select-option:hover {
    background: var(--primary-light);
}

.select-option.active {
    background: var(--accent-yellow-light);
    font-weight: 600;
}

/* Quality Control */
.quality-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 204, 0, 0.4);
    transition: var(--transition);
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.quality-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quality-input {
    width: 45px;
    padding: 0.375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.quality-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* Background Selector */
.background-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bg-option {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bg-option:hover {
    border-color: var(--accent-yellow);
}

.bg-option.active {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px var(--accent-yellow-light);
}

.bg-option svg {
    border-radius: 4px;
}

.custom-bg-input {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
}

.custom-bg-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-bg-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* New Dimensions Preview */
.new-dimensions-preview {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

.dimensions-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.dimensions-arrow i {
    color: var(--accent-yellow);
}

.dimensions-arrow .highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.estimated-size {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.estimated-size span {
    color: var(--success);
    font-weight: 600;
}

/* ===== ACTION BAR ===== */
.action-bar {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.resize-actions {
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.action-btn.convert,
.action-btn.resize-btn {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFB800 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3);
    flex: 2;
}

.action-btn.convert:hover,
.action-btn.resize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 204, 0, 0.4);
}

.action-btn.download {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    flex: 2;
}

.action-btn.download:hover {
    background: #059669;
    transform: translateY(-2px);
}

.action-btn.reset {
    background: var(--border-light);
    color: var(--text-secondary);
    flex: 1;
}

.action-btn.reset:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
    border-radius: var(--radius-xl);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background-color: var(--primary-light);
    padding: 4rem 0;
}

.benefits-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.benefits-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-yellow-light);
    color: var(--accent-yellow-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}

.benefit-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

/* ===== SEO SECTIONS ===== */
.seo-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.seo-section.alt-bg {
    background-color: var(--primary-light);
}

.seo-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.seo-content.reverse {
    flex-direction: row-reverse;
}

.seo-image {
    flex: 1;
    position: relative;
    min-height: 320px;
}

.seo-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seo-image-main {
    width: 280px;
    height: 280px;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.seo-image-main i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.seo-image-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.seo-image-float {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: var(--card-background);
    padding: 0.75rem;
    animation: floatElement 4s ease-in-out infinite;
}

.seo-image-float.float-1 {
    top: -20px;
    right: -30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFCC00, #FFB100);
}

.seo-image-float.float-1 i {
    font-size: 2rem;
    color: var(--text-primary);
}

.seo-image-float.float-2 {
    bottom: -10px;
    left: -20px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981, #059669);
    animation-delay: 1s;
}

.seo-image-float.float-2 i {
    font-size: 2.5rem;
    color: white;
}

.seo-image-float.float-3 {
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    padding: 1rem 1.25rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    animation: floatElementAlt 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.seo-image-float.float-3 span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-image-float.float-3 i {
    color: var(--success);
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatElementAlt {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 15px)); }
}

.social-float {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: floatSocial 4s ease-in-out infinite;
}

.social-float i {
    font-size: 1.25rem;
    color: white;
}

.social-float.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    top: 10%;
    right: 5%;
}

.social-float.facebook {
    background: #1877f2;
    bottom: 25%;
    left: 0;
    animation-delay: 1s;
}

.social-float.tiktok {
    background: #000;
    top: 20%;
    right: -10%;
    animation-delay: 0.5s;
}

.social-float.pinterest {
    background: #e60023;
    bottom: 10%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes floatSocial {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.seo-text {
    flex: 1;
}

.seo-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.seo-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 5rem 0;
    background-color: var(--primary-light);
}

.faq-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    color: var(--accent-yellow-hover);
}

.faq-question i {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .resize-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resize-options-section {
        order: 2;
    }
    
    .image-preview-section {
        order: 1;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-content {
        gap: 3rem;
    }

    .seo-image-main {
        width: 240px;
        height: 240px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .converter-section {
        padding: 2rem 0 0 0;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .upload-area {
        min-height: 280px;
        padding: 2rem 1.5rem;
    }

    .preview-area {
        padding: 1.5rem;
    }

    .resize-layout {
        gap: 1.25rem;
    }

    .image-preview-section {
        padding: 1.25rem;
    }

    .image-preview-wrapper {
        min-height: 250px;
    }

    .resize-options-section {
        padding: 1.25rem;
    }

    .option-row {
        flex-direction: column;
        gap: 1rem;
    }

    .aspect-lock {
        align-self: center;
        margin: -0.5rem 0;
    }

    .quality-control {
        flex-wrap: wrap;
    }

    .quality-slider {
        width: 100%;
        order: 2;
    }

    .quality-value {
        order: 1;
        margin-left: auto;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    /* Benefits */
    .benefits-section {
        padding: 3rem 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    /* SEO */
    .seo-section {
        padding: 3rem 0;
    }

    .seo-content {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }

    .seo-image {
        min-height: auto;
    }

    .seo-image-main {
        width: 200px;
        height: 200px;
    }

    .seo-image-main i {
        font-size: 4rem;
    }

    .seo-image-float.float-3 {
        display: none;
    }

    .seo-text h2 {
        font-size: 1.625rem;
    }

    /* FAQ */
    .faq-section {
        padding: 3rem 0;
    }

    .faq-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .upload-area {
        min-height: 240px;
        padding: 1.5rem 1rem;
    }

    .upload-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .upload-icon-wrapper i {
        font-size: 1.5rem;
    }

    .preview-area {
        padding: 1rem;
    }

    .image-preview-section,
    .resize-options-section {
        padding: 1rem;
    }

    .image-preview-wrapper {
        min-height: 200px;
        padding: 0.75rem;
    }

    .image-info {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .unit-selector {
        flex-wrap: wrap;
    }

    .unit-btn {
        min-width: 45px;
    }

    .background-selector {
        flex-wrap: wrap;
    }

    .seo-image-main {
        width: 160px;
        height: 160px;
    }

    .seo-image-main i {
        font-size: 3rem;
    }

    .seo-image-float.float-1 {
        width: 50px;
        height: 50px;
    }

    .seo-image-float.float-2 {
        width: 60px;
        height: 60px;
    }
}