/* ============================================================
   assets/css/components.css — Dodatkowe komponenty UI
   ============================================================ */

/* Importy nic niepotrzebnego — zawartość w global.css i layout.css */
/* Ten plik przeznaczony na specyficzne komponenty lub nowe elementy */

/* Alert banners */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
}
.alert-success { background: #dcfce7; border-color: #86efac; color: #15803d; }
.alert-error   { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.alert-info    { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.alert-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-primary { background: var(--color-primary);   color: white; }
.badge-accent  { background: var(--color-accent);    color: white; }
.badge-success { background: var(--color-success);   color: white; }

/* Trust badges row */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; justify-content: center; padding: var(--space-xl) 0; }
.trust-item { display: flex; align-items: center; gap: var(--space-sm); font-weight: 600; }
.trust-item svg, .trust-item img { width: 32px; height: 32px; }

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-2xl) 0;
}

/* ============================================================
   Realization single extras
   ============================================================ */
.related-articles ul { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 0.75rem; }
.related-articles a { color: var(--color-primary); font-weight: 500; }

/* ============================================================
   Blog article content styles
   ============================================================ */
.blog-content ul, .blog-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.blog-content ol { list-style: decimal; }
.blog-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-lg) 0;
    font-style: italic;
}

/* ============================================================
   Widget & Modal
   ============================================================ */
.floating-widget {
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
}
.btn-widget {
    padding: 0.65rem 1.6rem;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}
.btn-widget:hover {
    background: #8ecf24;
    border-color: #8ecf24;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    padding: var(--space-md);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-text); }
.modal-content h2 { margin-bottom: 0.5rem; font-size: var(--font-size-xl); }
.modal-content p { color: var(--color-text-muted); margin-bottom: var(--space-lg); }

/* Wycisz widget modal na desktop, jesli potrzeba
@media (min-width: 768px) {
    .floating-widget { bottom: var(--space-xl); }
} */

/* ============================================================
   How to order section ("Jak zamówić")
   ============================================================ */
.hto-section {
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.hto-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-xl);
}

@media (min-width: 992px) {
    .hto-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: var(--space-md);
    }
}

.hto-step {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 992px) {
    .hto-step {
        flex: 1;
        max-width: none;
    }
}

.hto-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: -50px; /* Overlap effect */
    z-index: 1;
}

.hto-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform var(--transition);
}

.hto-step:hover .hto-image-wrapper img {
    transform: scale(1.05);
}

.hto-number {
    position: absolute;
    top: 15px;
    left: 20px;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.hto-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 0 var(--space-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    text-align: center;
    width: calc(100% - var(--space-2xl));
    transition: transform var(--transition-slow);
}

.hto-step:hover .hto-card {
    transform: translateY(-5px);
}

.hto-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.hto-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Arrows */
.hto-arrow {
    display: none;
}

@media (min-width: 992px) {
    .hto-arrow {
        display: block;
        position: absolute;
        top: 120px; /* Center of image vertically */
        right: -25px; /* Between the steps */
        transform: translateY(-50%);
        z-index: 3;
    }
    
    /* Center SVG arrow */
    .hto-arrow svg {
        width: 36px;
        height: 36px;
        color: var(--color-success);
        stroke-width: 4;
    }
}
