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

/* CSS Variables for consistent styling */
:root {
    --button-padding: 12px 20px;
    --button-radius: 25px;
    --font-size-base: 14px;
    --font-size-large: 16px;
    --transition-base: all 0.3s ease;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    color: #4a5568;
    font-size: 2rem;
    font-weight: 700;
}

.language-selector select {
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-base);
}

.language-selector select:hover {
    border-color: #667eea;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

/* Main work area styles */
.main-work-area {
    margin: 2rem 0;
}

.upload-state,
.processing-state {
    transition: all 0.3s ease;
}

/* Image comparison styles */
.image-comparison {
    position: relative;
    width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.comparison-wrapper {
    display: flex;
    width: 100%;
    height: 500px;
    border: 3px solid #007bff;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    overflow: hidden;
}

.original-side, .result-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.original-side {
    border-right: 2px solid #007bff;
}

.image-display {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
    background-color: #858585;
}

.result-display {
    background: linear-gradient(45deg, #e0e0e0 25%, #ffffff 25%), 
                linear-gradient(-45deg, #e0e0e0 25%, #ffffff 25%), 
                linear-gradient(45deg, #ffffff 75%, #e0e0e0 75%), 
                linear-gradient(-45deg, #ffffff 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    padding: 10px;
    box-sizing: border-box;
}

.display-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.image-label {
    padding: 12px;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-top: 1px solid #007bff;
    font-weight: 600;
    color: #007bff;
    position: relative;
    z-index: 10;
    min-height: 20px;
    flex-shrink: 0;
}

.processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    color: #333;
}

.label-original {
    color: #666;
}

.label-result {
    color: #007bff;
}
.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: #f9f9f9;
    color: #666;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.result-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
}

.upload-content .upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.upload-content p {
    color: #718096;
    margin-bottom: 10px;
}

.file-info {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Preview Section */
.preview-section {
    margin-bottom: 40px;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    min-height: 350px; /* 固定容器高度 */
}

.image-preview {
    text-align: center;
    flex: 1;
    min-width: 300px; /* 增加最小宽度 */
    max-width: 400px; /* 限制最大宽度 */
    height: 320px; /* 固定高度 */
    display: flex;
    flex-direction: column;
}

.image-preview h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
    height: 30px; /* 固定标题高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: 275px; /* 固定图片显示区域高度 */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    background: #f8f9fa; /* 添加背景色 */
}

.arrow {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

#resultContainer {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Processing Indicator */
.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Action Buttons - Optimized horizontal layout */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 防止换行 */
    min-height: 48px;
    margin-top: 0px;
    overflow-x: auto; /* 小屏幕时允许水平滚动 */
}

/* 移除强制显示processBtn的样式，因为采用自动处理模式 */

/* 水平并列容器 */
.horizontal-container {
    display: flex;
    gap: 5px;
    align-items: flex-start; /* 顶部对齐，允许不同高度 */
    justify-content: center; /* 均匀分布 */
    gap: 5px;
    flex-wrap: wrap;
    margin: 20px 0;
    width: 100%;
}

/* 下载选项区域样式 */
.download-options {
    flex: 0 1 350px;
    min-width: 280px;
    max-width: 450px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: var(--button-radius);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 顶部对齐 */
}

.options-row {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.option-group label {
    font-size: var(--font-size-base);
    color: #666;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* 操作按钮区域样式 */
.action-buttons {
    flex: 0 1 390px;
    min-width: 280px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: flex-start; /* 改为顶部对齐 */
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--button-radius);
    border: 1px solid #e9ecef;
}

/* 按钮行样式 */
.button-row {
    display: flex;
    gap: 26px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.process-btn,
.download-btn,
.reset-btn {
    padding: var(--button-padding);
    border: none;
    border-radius: var(--button-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止按钮被压缩 */
    white-space: nowrap; /* 防止按钮文字换行 */
    color: #ffffff; /* 默认文字颜色 */
}

.format-select,
.size-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: var(--font-size-base);
    color: #333;
    cursor: pointer;
    transition: var(--transition-base);
    height: 40px;
    box-sizing: border-box;
    flex-shrink: 0; /* 防止选择框被压缩 */
    min-width: 140px; /* 设置最小宽度 */
}

.process-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
}

.format-select:hover,
.size-select:hover {
    border-color: #007bff;
}

.format-select:focus,
.size-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

    /* FAQ Section Styles */
    .faq-section {
        padding: 60px 0;
        background: #f8f9fa;
    }

    .faq-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: #333;
        font-size: 2.5rem;
        font-weight: 700;
    }

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

    .faq-item {
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .faq-item:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .faq-question {
        padding: 20px 24px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        transition: background-color 0.3s ease;
    }

    .faq-question:hover {
        background: #f8f9fa;
    }

    .faq-question h3 {
        margin: 0;
        color: #333;
        font-size: 1.1rem;
        font-weight: 600;
        flex: 1;
    }

    .faq-toggle {
        font-size: 1.5rem;
        color: #007bff;
        font-weight: bold;
        transition: transform 0.3s ease;
        margin-left: 16px;
    }

    .faq-item.active .faq-toggle {
        transform: rotate(45deg);
    }

    .faq-answer {
        padding: 0 24px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        background: #fafbfc;
    }

    .faq-item.active .faq-answer {
        padding: 20px 24px;
        max-height: 200px;
    }

    .faq-answer p {
        margin: 0;
        color: #666;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    /* Ad Banner Styles - 暂时隐藏 */
    .ad-banner {
        margin: 20px 0;
        display: none; /* 隐藏广告区域 */
        justify-content: center;
        align-items: center;
    }

    .ad-top {
        margin-bottom: 30px;
    }

    .ad-side {
        margin-top: 30px;
    }

    .ad-placeholder {
        min-height: 90px;
        background: #f8f9fa;
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 14px;
        text-align: center;
        padding: 20px;
        max-width: 728px;
        width: 100%;
    }

    .ad-placeholder:empty::before {
        content: "广告位";
    }

    /* Responsive ad styles */
    @media (max-width: 768px) {
        .ad-banner {
            margin: 15px 0;
        }
        
        .ad-placeholder {
            min-height: 60px;
            max-width: 320px;
        }
    }

/* 重复的按钮样式已移除，统一在上方定义 */

.download-btn {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #333333;
}

.reset-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Features Section */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 30px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .image-comparison {
        max-width: 90%;
    }
    
    .comparison-wrapper {
        height: 400px;
    }
    
    .single-image {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
        min-height: 200px;
    }
    
    .upload-content .upload-icon {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    
    .upload-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .upload-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .file-input-wrapper {
        margin-top: 15px;
    }
    
    .file-input-wrapper input[type="file"] {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .image-container {
        flex-direction: column;
        gap: 20px;
        margin: 25px 0;
    }
    
    .arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
    }
    
    .action-buttons > * {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .image-comparison {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .comparison-wrapper {
        flex-direction: column;
        height: 600px;
    }
    
    .original-side, .result-side {
        height: 300px;
        padding: 10px;
    }
    
    .original-side {
        border-right: none;
        border-bottom: 2px solid #007bff;
    }
    
    .display-image {
        max-width: 95%;
        max-height: 95%;
        /* Improve touch interaction */
        touch-action: pan-x pan-y;
    }
    
    /* FAQ mobile optimization */
    .faq-item {
        margin-bottom: 15px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 15px;
        /* Better touch targets */
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .faq-answer {
        padding: 15px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Notification mobile optimization */
    .notification {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
        max-width: calc(100vw - 20px);
    }
    

}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .upload-area {
        padding: 25px 10px;
        min-height: 180px;
    }
    
    .upload-content .upload-icon {
        font-size: 3rem;
    }
    
    .upload-content h3 {
        font-size: 1.1rem;
    }
    
    .upload-content p {
        font-size: 0.85rem;
    }
    
    .features-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-card .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .image-comparison {
        max-width: 100%;
        margin: 15px 5px;
    }
    
    .comparison-wrapper {
        height: 500px;
    }
    
    .original-side, .result-side {
        height: 250px;
        padding: 8px;
    }
    
    .single-image-container {
        padding: 3px;
    }
    
    .single-image {
        max-width: 100%;
        max-height: 100%;
    }
    
    .action-buttons > * {
        font-size: 15px;
        padding: 12px 18px;
    }
    
    /* 水平并列容器在移动端垂直排列 */
    .horizontal-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .download-options,
    .action-buttons {
        min-width: 100%;
        max-width: 100%;
    }
    
    /* Language selector mobile */
    .language-selector select {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 44px;
    }
    

}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Optimize for touch devices */
    .upload-area {
        /* Larger touch target */
        min-height: 200px;
        cursor: pointer;
    }
    
    .upload-area:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    button {
        /* Ensure all buttons have adequate touch targets */
        min-height: 44px;
        min-width: 44px;
    }
    
    .faq-question {
        /* Better touch feedback */
        transition: background-color 0.2s ease;
    }
    
    .faq-question:active {
        background-color: rgba(0, 123, 255, 0.1);
    }
    
    /* Remove hover effects on touch devices */
    .upload-area:hover,
    button:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .comparison-wrapper {
        flex-direction: row;
        height: 400px;
    }
    
    .original-side, .result-side {
        height: 100%;
        width: 50%;
    }
    
    .original-side {
        border-right: 2px solid #007bff;
        border-bottom: none;
    }
    
    .arrow {
        transform: rotate(0deg);
        margin: 0 10px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    margin: 8px 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Social Share Styles */
.social-share {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Instagram Share Modal */
.instagram-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.instagram-share-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.instagram-share-modal .modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instagram-share-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.instagram-share-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.instagram-share-modal .close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.instagram-share-modal .modal-body {
    padding: 20px 25px 25px;
}

.instagram-share-modal .modal-body p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
}

.instagram-share-modal .share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.instagram-share-modal .share-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
    font-weight: 500;
}

.instagram-share-modal .share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.instagram-share-modal .share-option:active {
    transform: translateY(0);
}

.instagram-share-modal .share-option small {
    font-size: 13px;
    opacity: 0.9;
    font-weight: normal;
}

.instagram-share-modal .preview-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.instagram-share-modal .preview-text h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.instagram-share-modal .preview-text textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background: white;
    color: #333;
}

.instagram-share-modal .preview-text textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Responsive modal */
@media (max-width: 768px) {
    .instagram-share-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .instagram-share-modal .modal-header,
    .instagram-share-modal .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .instagram-share-modal .share-option {
        padding: 12px 15px;
        font-size: 15px;
    }
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.share-btn.reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
}

.share-btn.copy-link:hover {
    background: #28a745;
    border-color: #28a745;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Regional Features Styles */
.regional-features {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.regional-features h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.regional-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.regional-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.regional-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.regional-card .region-flag {
    font-size: 1.2rem;
}

.regional-card .use-cases {
    list-style: none;
    padding: 0;
    margin: 0;
}

.regional-card .use-cases li {
    padding: 6px 0;
    color: #495057;
    font-size: 0.9rem;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 20px;
}

.regional-card .use-cases li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.regional-card .use-cases li:last-child {
    border-bottom: none;
}

.regional-card .business-hint {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.regional-card .business-hint strong {
    color: #1976d2;
    font-size: 0.85rem;
}

.regional-card .business-hint p {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: #424242;
    line-height: 1.4;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .regional-features {
        padding: 20px;
        margin: 20px 0;
    }
    
    .regional-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .regional-card {
        padding: 15px;
    }
}

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

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

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