/* 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: #333;
    background-color: #f8fafc;
}

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

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo a {
    font-size: 20px;
    font-weight: 700;
    color: 	#000000;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #4b5563;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.benefit h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit p {
    font-size: 14px;
    opacity: 0.9;
}

/* Ad Banner Styles */
.ad-banner {
    padding: 32px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.ad-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #64748b;
    margin: 16px 0;
}

.ad-rectangle {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-vertical {
    min-height: 600px;
    width: 300px;
}

.ad-placeholder::before {
    content: "Advertisement Space";
    font-weight: 500;
}

/* Tool Section */
.tool-section {
    padding: 48px 0;
    background: white;
}

.tool-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.upload-area h2,
.controls-panel h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1f2937;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-zone.drag-over {
    border-color: #2563eb;
    background: #dbeafe;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.upload-content p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #10b981;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #059669;
}

.btn-secondary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* Controls Panel */
.controls-panel {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.control-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 8px;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.target-size-inputs {
    display: flex;
    gap: 8px;
}

.target-size-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.target-size-inputs select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.format-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.format-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.format-btn:hover:not(.active) {
    background: #f3f4f6;
}

.size-preview {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.size-preview h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #065f46;
}

.size-info div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
}

.savings {
    font-weight: 600;
    color: #059669;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* File List */
.file-list {
    margin-top: 24px;
}

.file-list h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.file-details {
    font-size: 12px;
    color: #6b7280;
}

.file-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
}

/* Comparison Section */
.comparison-section {
    margin-top: 48px;
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #1f2937;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.comparison-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
}

.comparison-canvas {
    max-width: 100%;
    height: 300px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    object-fit: contain;
}

.image-info {
    margin-top: 12px;
    font-size: 14px;
}

.image-info div {
    margin-bottom: 4px;
}

.savings-info {
    font-weight: 600;
    color: #059669;
}

/* Content Section */
.content-section {
    padding: 48px 0;
    background: white;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #1f2937;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.content-main h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #1f2937;
}

.content-main p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.step-list {
    margin: 16px 0;
    padding-left: 20px;
}

.step-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.benefit-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.benefit-item p {
    font-size: 14px;
    margin: 0;
}

.content-main ul {
    margin: 16px 0;
    padding-left: 20px;
}

.content-main ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 48px 0 24px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section h3 a {
    color: white;
    text-decoration: none;
}

.footer-section h3 a:hover {
    color: #60a5fa;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #9ca3af;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav.active {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .format-buttons {
        grid-template-columns: 1fr;
    }

    .target-size-inputs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .tool-section {
        padding: 32px 0;
    }

    .controls-panel {
        padding: 24px;
    }

    .upload-zone {
        padding: 32px 16px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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