/* 圖片濾鏡工具專屬樣式 */

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.95; }

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

.upload-container {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light-gray);
    transition: var(--transition);
    cursor: pointer;
}

.upload-container:hover, .upload-container.dragover {
    border-color: var(--primary-color);
    background: rgba(247, 147, 26, 0.05);
    transform: translateY(-2px);
}

.upload-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.upload-content h3 { color: var(--text-color); margin-bottom: 0.5rem; }
.upload-content p { color: var(--text-color); opacity: 0.7; margin-bottom: 1.5rem; }
.upload-hint { font-size: 0.9rem; opacity: 0.6; margin-top: 1rem; }

.editor-section { margin: 2rem 0; }

.editor-container {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 1.5rem;
    min-height: 600px;
}

.filters-panel, .compare-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 3px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: 90vh;
}

.filters-panel h3, .compare-panel h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.filter-category {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-category:last-child { border-bottom: none; }
.filter-category h4 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 0.4rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary-color);
    background: rgba(247, 147, 26, 0.1);
}

.adjustment-group {
    margin-bottom: 1rem;
}

.adjustment-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

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

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.preview-area {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.preview-container {
    max-width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewImage {
    max-width: 100%;
    max-height: 600px;
    display: block;
    border-radius: 8px;
}

.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.compare-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.compare-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    text-align: center;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow-color); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px var(--shadow-color);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.feature-card h3 { color: var(--text-color); margin-bottom: 1rem; }
.feature-card p { color: var(--text-color); opacity: 0.8; line-height: 1.6; }

.tutorial, .faq {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    box-shadow: 0 3px 15px var(--shadow-color);
}

.tutorial h2, .faq h2 { color: var(--text-color); margin-bottom: 1.5rem; }
.tutorial ol, .tutorial ul { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.tutorial li { margin-bottom: 0.75rem; line-height: 1.6; color: var(--text-color); }

.faq-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--text-color); margin-bottom: 1rem; }
.faq-item p { color: var(--text-color); opacity: 0.85; line-height: 1.7; }

.tool-info {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.tool-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .editor-container { grid-template-columns: 250px 1fr 300px; }
}

@media (max-width: 992px) {
    .editor-container { grid-template-columns: 1fr; }
    .compare-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .filter-buttons { grid-template-columns: 1fr; }
}

/* 暗色主題 */
[data-theme="dark"] .filters-panel,
[data-theme="dark"] .preview-area,
[data-theme="dark"] .compare-panel,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .tutorial,
[data-theme="dark"] .faq {
    background: #1a1a1a;
    border-color: #333;
}

[data-theme="dark"] .upload-container {
    background: #1a1a1a;
    border-color: #333;
}

[data-theme="dark"] .filter-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

[data-theme="dark"] .btn {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}

[data-theme="dark"] .tool-info { background: #1a1a1a; }
