/* Photo Watermark tool - page specific styles (shared look + .tool-nav live in styles.css) */

#photoInput {
    display: none;
}

.preview-container {
    text-align: center;
    margin-bottom: 20px;
    /* checkerboard so transparent PNGs read correctly */
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    border-radius: 15px;
    padding: 10px;
}

#previewCanvas {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.thumbnail-strip:empty {
    display: none;
}

.thumbnail-strip img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.thumbnail-strip img:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 244, 238, 0.6);
}

.thumbnail-strip img.active {
    border-color: #fe2c55;
    box-shadow: 0 0 15px rgba(254, 44, 85, 0.6);
}

.text-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(254, 44, 85, 0.3);
    background: rgba(40, 40, 40, 0.9);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.text-input:focus {
    border-color: rgba(37, 244, 238, 0.7);
    box-shadow: 0 0 20px rgba(37, 244, 238, 0.25);
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

#colorPicker {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 1px solid rgba(254, 44, 85, 0.3);
    border-radius: 12px;
    background: rgba(40, 40, 40, 0.9);
    cursor: pointer;
}

.layout-toggle {
    display: flex;
    gap: 10px;
}

.layout-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(40, 40, 40, 0.9);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.layout-btn:hover {
    border-color: rgba(37, 244, 238, 0.5);
}

.layout-btn.active {
    background: linear-gradient(45deg, #fe2c55, #ff0050);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}

.export-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.export-btn.secondary {
    background: linear-gradient(45deg, #25f4ee, #00d4ff);
    animation: none;
}

.footer-note a {
    color: #fe2c55;
    font-weight: 700;
}

@media (max-width: 768px) {
    .control-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
