/* ============================================
   MINIMALIST BREAKPOINTS SYSTEM
   Mobile First Approach
   ============================================ */

/* ===== PHILOSOPHY =====
   - Mobile First (piszemy style dla mobile, dodajemy @media dla desktop)
   - 2 breakpointy: mobile i desktop (wystarczy w 90% przypadków)
   - Przejrzyste utility classes
*/

/* ===== BREAKPOINTS ===== */
:root {
    --bp-mobile: 768px;  /* Wszystko poniżej = mobile */
}

/* Mobile: 0 - 767px (default, bez @media)
   Desktop: 768px+ (użyj @media (min-width: 768px))
*/

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

/* === VISIBILITY === */

/* Desktop only */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Mobile only */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* === FLEXBOX HELPERS === */

.flex {
    display: flex;
}

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

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

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

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

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

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* === GRID HELPERS === */

.grid {
    display: grid;
}

/* Grid: 1 kolumna mobile, 2 desktop */
.grid-cols-1-2 {
    grid-template-columns: 1fr;
}

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

/* Grid: 1 kolumna mobile, 3 desktop */
.grid-cols-1-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-cols-1-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid: 1 kolumna mobile, 4 desktop */
.grid-cols-1-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-cols-1-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-gap-4 {
    gap: var(--space-4);
}

.grid-gap-6 {
    gap: var(--space-6);
}

.grid-gap-8 {
    gap: var(--space-8);
}

/* === TEXT ALIGNMENT === */

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

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

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

/* Mobile center, desktop left */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

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

/* Padding */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* Margin */
.m-auto { margin: 0 auto; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* === WIDTH UTILITIES === */

.w-full {
    width: 100%;
}

.max-w-container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;  /* Mobile padding */
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;  /* Desktop padding */
        padding-right: 24px;
    }
}

/* ============================================
   SECTION SPACING
   ============================================ */

/* Sekcje homepage - standardowy spacing */
.section {
    padding-top: 15px;    /* Mobile */
    padding-bottom: 15px;
}

@media (min-width: 768px) {
    .section {
        padding-top: 80px;   /* Desktop */
        padding-bottom: 80px;
    }
}

.section-sm {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .section-sm {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ============================================
   COMMON PATTERNS
   ============================================ */

/* Hover effect (tylko desktop) */
@media (min-width: 768px) {
    .hover-lift {
        transition: transform var(--transition-base);
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* Hide scrollbar (ale zachowaj scroll) */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   QUICK REFERENCE COMMENT
   ============================================ */

/*
USAGE EXAMPLES:

<!-- Grid: 3 kolumny desktop, 1 mobile -->
<div class="grid grid-cols-1-3 grid-gap-6">
    <div>Item 1</div>
    <div>Item 2</div>
    <div>Item 3</div>
</div>

<!-- Flexbox: centered content -->
<div class="flex items-center justify-center gap-4">
    <button>Button</button>
</div>

<!-- Section z containerem -->
<section class="section">
    <div class="container">
        <h2 class="text-center mb-8">Heading</h2>
    </div>
</section>

<!-- Ukryj na mobile -->
<div class="desktop-only">Desktop content</div>

<!-- Custom breakpoint w CSS -->
@media (min-width: 768px) {
    .my-element {
        font-size: 24px;
    }
}
*/
