/**
 * Index Page Styles
 * 首页专用样式
 */

/* Mode Button Styles */
.mode-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mode-btn.active {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.mode-btn:not(.active):hover {
    background: #f3f4f6;
    color: #3b82f6;
}

/* Tab Button Styles */
.tab-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
}

.tab-btn:not(.active):hover {
    background: #f3f4f6;
    color: #3b82f6;
}

/* Drop Zone Styles */
#drop-zone {
    transition: all 0.3s ease;
}

#drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Character Count */
#char-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* File Preview */
.file-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Gradient Background Blobs */
.blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mode-btn,
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
