/* DiveLogs Block Styles */
.divelogs-dive-log {
    font-family: inherit;
    line-height: 1.6;
    margin: 1.5em 0;
}

.divelogs-date {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 1em;
}

/* Depth Chart */
.divelogs-chart-wrap {
    margin: 1em 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.divelogs-chart-wrap canvas {
    display: block;
    width: 100%;
}

/* Notes */
.divelogs-notes {
    background: #f8f9fa;
    border-left: 4px solid #0078c8;
    padding: 0.8em 1em;
    margin: 1em 0;
    border-radius: 0 4px 4px 0;
}

.divelogs-notes h4 {
    margin: 0 0 0.4em;
    font-size: 1em;
    color: #0078c8;
}

/* Images */
.divelogs-images h4,
.divelogs-videos h4 {
    margin-bottom: 0.5em;
    font-size: 1em;
}

.divelogs-image-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
    gap: 8px;
    margin: 0.5em 0 1em;
}

.divelogs-image-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Videos */
.divelogs-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1em;
    border-radius: 4px;
}

.divelogs-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Link back */
.divelogs-link {
    font-family: inherit;
    line-height: 1.6;
}

/* Error state */
.divelogs-error {
    color: #c0392b;
    padding: 0.5em;
    border: 1px solid #c0392b;
    border-radius: 4px;
}
