/* Swiss WP Secure — Crescendo Scroll Animations */
/* Separated from style.css to survive theme updates */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Product page: buttons side by side */
.wp-block-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.wp-block-buttons .wp-block-button {
    width: auto !important;
    flex-basis: auto !important;
    margin: 0 !important;
}

.wp-block-buttons .wp-block-button__link {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Header scroll background fix */
.hostinger-ai-menu {
    background-color: var(--wp--preset--color--light) !important;
    transition: box-shadow 0.3s ease;
}

/* Mobile tap targets — WCAG 2.5.8 minimum 44x44px */
@media (max-width: 768px) {
    .wp-block-button__link,
    .wp-element-button,
    button[type="submit"] {
        min-height: 44px;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/* Very small phones: stack pricing buttons vertically */
@media (max-width: 480px) {
    .wp-block-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .wp-block-buttons .wp-block-button {
        width: 100% !important;
    }
    .wp-block-buttons .wp-block-button__link {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Legal page tables: scroll on mobile instead of overflow */
.wp-block-post-content table,
.entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════
   BLOG CATEGORY SYSTEM
   ═══════════════════════════════════════════════ */

/* Category Tab Navigation */
.blog-category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.blog-tab {
    background: transparent;
    border: 2px solid var(--wp--preset--color--grey);
    color: var(--wp--preset--color--dark);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--wp--preset--font-family--dmsans), sans-serif;
}

.blog-tab:hover {
    border-color: var(--wp--preset--color--color3);
    color: var(--wp--preset--color--color3);
}

.blog-tab.active {
    background: var(--wp--preset--color--color3);
    border-color: var(--wp--preset--color--color3);
    color: var(--wp--preset--color--light);
}

/* Category Badge on Post Cards */
.blog-category-badge {
    margin-bottom: 0.5rem !important;
}

.blog-category-badge a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    background: var(--wp--preset--color--color1);
    color: var(--wp--preset--color--color3);
}

.blog-category-badge a:hover {
    opacity: 0.8;
}

/* Post Card in Query Grid */
.blog-post-card {
    background: var(--wp--preset--color--light);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Hide posts when JS tab filtering is active */
.blog-post-hidden {
    display: none !important;
}

/* No results message (shown by JS) */
.blog-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--wp--preset--color--color3);
    font-size: 1.1rem;
    display: none;
}

.blog-no-results.visible {
    display: block;
}

/* Category Archive Page Header */
.category-archive-header {
    text-align: center;
}

.category-archive-description {
    max-width: 700px;
    margin: 0 auto;
}

/* Single Post: category + date meta row */
.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive: tabs scroll horizontally on small phones */
@media (max-width: 480px) {
    .blog-category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    .blog-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Responsive: post grid stacks on mobile */
@media (max-width: 768px) {
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }
}
