/* Gemini Watermark Specific Styles */

.upload-container {
    padding: 1rem;
}

.upload-zone {
    border: 1px dashed #333;
    border-radius: 4px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
    border-color: #b38728;
    background: rgba(179, 135, 40, 0.05);
}

.upload-zone.dragging {
    border-color: #b38728;
    background: rgba(179, 135, 40, 0.1);
    transform: scale(1.01);
}

.upload-content .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: sepia(100%) hue-rotate(5deg) saturate(200%);
    /* Gold tint */
}

.preview-box {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.canvas-wrapper {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.canvas-wrapper canvas {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.processing-controls {
    padding: 1.5rem;
    border-top: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.has-text-gold {
    color: #b38728 !important;
}

@media (max-width: 768px) {
    .upload-zone {
        padding: 2.5rem 1rem;
    }

    .preview-box {
        margin: 0.5rem 0;
    }
}

/* Batch Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: #b38728;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-card .card-preview {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.result-card .card-preview canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-card .card-info {
    margin-bottom: 1rem;
}

.result-card .file-name {
    font-size: 0.85rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.result-card .file-size {
    font-size: 0.75rem;
    color: #666;
}

.result-card .card-actions {
    margin-top: auto;
}

.result-card.is-processing {
    opacity: 0.6;
    pointer-events: none;
}

.result-card.is-processing .card-preview::after {
    content: "處理中...";
    position: absolute;
    color: #b38728;
    font-size: 0.8rem;
    font-weight: bold;
}