/**
 * Wide Studio - CSS Utilities
 * Classes utilitárias reutilizáveis
 */

/* =================================
   LAYOUT HELPERS
   ================================= */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* =================================
   SPACING UTILITIES
   ================================= */

.gap-xs {
    gap: var(--spacing-xs);
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

.p-xs {
    padding: var(--spacing-xs);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.p-xl {
    padding: var(--spacing-xl);
}

.m-xs {
    margin: var(--spacing-xs);
}

.m-sm {
    margin: var(--spacing-sm);
}

.m-md {
    margin: var(--spacing-md);
}

.m-lg {
    margin: var(--spacing-lg);
}

.m-xl {
    margin: var(--spacing-xl);
}

/* =================================
   BUTTON UTILITIES
   ================================= */

.btn-base {
    font-family: var(--font-main);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-color);
}

.btn-ghost:hover {
    opacity: 0.7;
}

/* =================================
   PILL INDICATORS (Shared)
   ================================= */

.pill-indicator,
.tab-pill-indicator,
.filter-pill-indicator {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50px;
    transition: all 0.4s var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
}

/* =================================
   CUSTOM CURSOR - DESABILITADO
   ================================= 

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: var(--text-color);
    border: none;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    display: none;
}

@media (pointer: fine) {
    *,
    *::before,
    *::after {
        cursor: none !important;
    }

    #custom-cursor {
        display: block;
    }
}

body.hovering #custom-cursor {
    width: 50px;
    height: 50px;
    opacity: 0.2;
}

body.hovering-inverted #custom-cursor {
    width: 50px;
    height: 50px;
    opacity: 0.2;
    background-color: var(--bg-color);
}
*/

/* =================================
   TRANSITION UTILITIES
   ================================= */

.transition-base {
    transition: var(--transition-base);
}

.transition-fast {
    transition: var(--transition-fast);
}

.transition-slow {
    transition: var(--transition-slow);
}

.fade-enter {
    opacity: 0;
    transform: translateY(20px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

/* =================================
   VISIBILITY UTILITIES
   ================================= */

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
    opacity: 0;
}

.visible {
    visibility: visible;
    opacity: 1;
}

/* =================================
   TEXT UTILITIES
   ================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-muted {
    opacity: 0.6;
}

.font-display {
    font-family: var(--font-display);
}

/* =================================
   CARD UTILITIES
   ================================= */

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
}

/* =================================
   OVERLAY UTILITIES
   ================================= */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* =================================
   LOADER UTILITIES
   ================================= */

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =================================
   RESPONSIVE UTILITIES
   ================================= */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

/* =================================
   SCROLL UTILITIES
   ================================= */

.no-scroll {
    overflow: hidden;
}

/* Lenis controla o scroll - não usar scroll-behavior nativo */

/* =================================
   INTERACTIVE STATES
   ================================= */

.clickable {
    cursor: pointer;
    user-select: none;
}

.clickable:active {
    transform: scale(0.98);
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =================================
   SHADOWS - Removed for flat design
   ================================= */
/* Shadow utilities have been removed to maintain a completely flat design without any shadow effects */

/* =================================
   BORDERS
   ================================= */

.border-radius-sm {
    border-radius: var(--radius-sm);
}

.border-radius-md {
    border-radius: var(--radius-md);
}

.border-radius-lg {
    border-radius: var(--radius-lg);
}

.border-radius-pill {
    border-radius: var(--radius-pill);
}

.border-radius-full {
    border-radius: var(--radius-full);
}