/**
 * Projeto Lista - Layout Styles
 * Estilos específicos para seções e layouts da páginas
 */

/* ============================================
   SECTIONS STYLING
   ============================================ */

section {
    scroll-margin-top: 80px;
    scroll-behavior: smooth;
}

section > .container-base {
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */

.bg-gradient-to-b {
    background: linear-gradient(to bottom, from, via, to);
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
}

.via-white {
    --tw-gradient-via: #ffffff;
    --tw-gradient-via-stop: 50%;
}

.to-white {
    --tw-gradient-to: #ffffff;
}

/* ============================================
   TEXT UTILITIES (Responsive Typography)
   ============================================ */

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 1.3;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.3;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.4;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

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

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* ============================================
   GRID UTILITIES
   ============================================ */

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */

.flex {
    display: flex;
}

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

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

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* ============================================
   BACKGROUND & BORDERS
   ============================================ */

.bg-gradient-to-br {
    background: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-blue-400 {
    --tw-gradient-from: #60a5fa;
}

.to-blue-600 {
    --tw-gradient-to: #2563eb;
}

.border-t {
    border-top: 1px solid var(--color-neutral-border);
}

.border-b {
    border-bottom: 1px solid var(--color-neutral-border);
}

.pt-8 {
    padding-top: 2rem;
}

/* ============================================
   ASPECTS & SIZING
   ============================================ */

.aspect-square {
    aspect-ratio: 1 / 1;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

/* ============================================
   ROUNDED CORNERS
   ============================================ */

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

.rounded-2xl {
    border-radius: 1rem;
}

/* ============================================
   DISPLAY & VISIBILITY
   ============================================ */

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

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

.tracking-tight {
    letter-spacing: -0.015em;
}

.tracking-tighter {
    letter-spacing: -0.02em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

/* ============================================
   UTILITIES FOR FOCUS & STATES
   ============================================ */

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

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

@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.25rem;
    }

    .text-4xl {
        font-size: 1.875rem;
    }

    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .gap-12 {
        gap: 1.5rem;
    }

    .md\:gap-12 {
        gap: 3rem;
    }

    .max-w-2xl {
        max-width: 28rem;
    }
}

@media (max-width: 640px) {
    .flex-wrap {
        flex-wrap: wrap;
    }
}

/* ============================================
   MAX-WIDTH UTILITIES
   ============================================ */

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

/* ============================================
   TRANSITION & EFFECTS
   ============================================ */

.transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-50 {
    opacity: 0.5;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-2 {
    display: flex;
    flex-direction: column;
}
