/* -----------------------------------------------
   Main wrapper — medium width, centered on page
----------------------------------------------- */
#photo-swap-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    font-family: inherit; /* Respects the active WordPress theme's font */
}

/* -----------------------------------------------
   Upload form
----------------------------------------------- */
#photo-swap-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#photo-swap-form label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

#photo-swap-input {
    padding: 0.5rem;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#photo-swap-input:hover,
#photo-swap-input:focus {
    border-color: #888;
    outline: none;
}

/* -----------------------------------------------
   Submit button
----------------------------------------------- */
#photo-swap-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#photo-swap-form button[type="submit"]:hover {
    background-color: #555;
}

#photo-swap-form button[type="submit"]:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* -----------------------------------------------
   Result area — shown after a successful swap
----------------------------------------------- */
#photo-swap-result {
    margin-top: 2rem;
}

/* -----------------------------------------------
   Feedback messages
----------------------------------------------- */
.photo-swap-loading,
.photo-swap-success,
.photo-swap-error {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.photo-swap-loading {
    color: #888;
}

.photo-swap-success {
    color: #2e7d32; /* Dark green */
}

.photo-swap-error {
    color: #c62828; /* Dark red */
}

/* -----------------------------------------------
   Random image result
----------------------------------------------- */
#photo-swap-result img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.1 );
    margin-bottom: 1rem;
}

/* -----------------------------------------------
   Download button
----------------------------------------------- */
.photo-swap-download {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.photo-swap-download:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}