/**
 * Solea Beach — Stili frontend base.
 * 
 * Gli stili principali dell'app sono inline nel componente React
 * (CSS variables + Tailwind-like classes). Questo file contiene:
 * - Isolamento dal tema WP attivo
 * - Loader iniziale
 * - Font loading
 */

/* Isolate the app container from theme styles */
.solea-app-mount {
    all: revert;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-height: 400px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #2c1810;
}

.solea-app-mount *,
.solea-app-mount *::before,
.solea-app-mount *::after {
    box-sizing: border-box;
}

/* Reset theme interference for common elements */
.solea-app-mount img,
.solea-app-mount svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.solea-app-mount button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
}

.solea-app-mount input,
.solea-app-mount textarea,
.solea-app-mount select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.solea-app-mount a {
    color: inherit;
    text-decoration: none;
}

/* Loader */
.solea-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #fdf6ec;
    border-radius: 1.5rem;
    text-align: center;
}

.solea-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(217, 119, 87, 0.2);
    border-top-color: #d97757;
    border-radius: 50%;
    animation: solea-spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes solea-spin {
    to { transform: rotate(360deg); }
}

.solea-loading-wrap p {
    font-size: 0.875rem;
    color: rgba(44, 24, 16, 0.6);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* No-script fallback */
.solea-noscript {
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    color: #856404;
    text-align: center;
}

/* Dark theme override */
.solea-theme-dark {
    background: #1a0f08;
    color: #fdf6ec;
}
