/* Information Bar Block Styles */
.information-bar-wrapper {
    background-color: #f5f4eb;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.wp-block-cakeclub-information-bar {
    width: 100%;
    max-width: none;
}

.wp-block-cakeclub-information-bar.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.information-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}

.information-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 15px;
    min-height: 120px;
}

.information-bar-icon {
    width: 100%;
    max-width: 90%;
    max-height: 36px;
    height: auto;
    margin-bottom: 6px;
    object-fit: contain;
}

.information-bar-title {
    font-family: 'Mindset', cursive, sans-serif;
    font-size: 2rem;
    font-weight: 100;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: #FF0000;
    text-align: center;
}

.information-bar-title + .information-bar-title2 {
    margin-top: -6px;
}

.information-bar-title2 {
    font-family: 'BNRendallScript', cursive, sans-serif;
    font-size: 1.5rem;
    font-weight: 100;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: #FF0000;
    text-align: center;
    transform: rotate(-5deg) translateY(-5px);
}

.information-bar-text {
    font-size: 14px;
    line-height: 1.4;
    color: #FF0000;
    width: 100%;
    max-width: 100%;
}

.information-bar-text p {
    margin: 0 0 5px 0;
}

.information-bar-text p:last-child {
    margin-bottom: 0;
}

/* Divider styles - Hidden on desktop */
.information-bar-divider {
    display: none;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .information-bar-item {
        padding: 15px 10px;
    }
    
    .information-bar-icon {
        max-width: 85%;
    }
    
    .information-bar-title {
        font-size: 1.75rem;
    }
    
    .information-bar-title2 {
        font-size: 1.25rem;
    }
    
    .information-bar-text {
        font-size: 13px;
    }
}

/* Mobile - 2 column grid with dividers */
@media (max-width: 768px) {
    .information-bar-wrapper {
        padding: 20px 15px;
    }
    
    .information-bar-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
        position: relative;
    }
    
    /* Show dividers on mobile */
    .information-bar-divider {
        display: block;
    }
    
    /* Position items in 2x2 grid - using nth-child for actual DOM order */
    /* Item 1 (child 1) */
    .information-bar-grid > .information-bar-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Item 2 (child 3, after first divider) */
    .information-bar-grid > .information-bar-item:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }
    
    /* Item 3 (child 5, after second divider) */
    .information-bar-grid > .information-bar-item:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }
    
    /* Item 4 (child 7, after third divider) */
    .information-bar-grid > .information-bar-item:nth-child(7) {
        grid-column: 3;
        grid-row: 3;
    }
    
    /* First vertical divider (child 2) - top row, extends to bottom edge */
    .information-bar-grid > .information-bar-divider:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        width: 1px;
        height: calc(100% + 1px);
        margin-top: 8px;
        margin-bottom: 0;
        border-left: 1px dashed #FF0000;
        border-top: none;
        align-self: stretch;
    }
    
    /* Horizontal divider (child 4) - between rows */
    .information-bar-grid > .information-bar-divider:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 1px;
        border-left: none;
        border-top: 1px dashed #FF0000;
    }
    
    /* Third vertical divider (child 6) - bottom row, extends from top edge */
    .information-bar-grid > .information-bar-divider:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
        width: 1px;
        height: calc(100% + 1px);
        margin-top: 0;
        margin-bottom: 8px;
        border-left: 1px dashed #FF0000;
        border-top: none;
        align-self: stretch;
    }
    
    .information-bar-item {
        padding: 20px 10px;
        min-height: 100px;
    }
    
    .information-bar-icon {
        max-width: 80%;
        margin-bottom: 10px;
    }
    
    .information-bar-title {
        font-size: 1.5rem;
    }
    
    .information-bar-title2 {
        font-size: 1.1rem;
    }
    
    .information-bar-text {
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .information-bar-wrapper {
        padding: 15px 10px;
    }
    
    .information-bar-item {
        padding: 15px 5px;
        min-height: 90px;
    }
    
    .information-bar-icon {
        max-width: 75%;
    }
    
    .information-bar-title {
        font-size: 1.25rem;
    }
    
    .information-bar-title2 {
        font-size: 1rem;
    }
    
    .information-bar-text {
        font-size: 11px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .information-bar-divider {
        border-color: currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .information-bar-icon,
    .information-bar-item {
        transition: none;
    }
}
