/* ========================================
   SQUAD.LV - CLEANED PUBLIC CSS
   Header & Footer now use inline styles
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --container-max-width: 1200px;
}


/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #374151;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content-centered {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
    display: block;
    font-size: 1em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    font-weight: bold;
}

h3 { 
    margin: 0 0 0.5rem 0; 
}

/* ========================================
   BUTTONS - FOCUS STATE
   ======================================== */
button:focus {
    outline: none;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.main-content,
#mainContent {
    flex: 1 0 auto;
    padding: 2rem 0;

}

/* ========================================
   SUMMERNOTE CONTENT IMAGES
   ======================================== */
.spa-products-main-content .note-editable img,
.spa-products-main-content [class*="description"] img,
.spa-products-main-content p img,
.spa-products-main-content div img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */
.content-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

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

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

/* ========================================
   UTILITY CLASSES
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* ========================================
   END OF CLEANED CSS
   ======================================== */