/* Zon Stroomprijzen Shortcode Styles */

.zon-stroomprijzen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Explanation Section */
.zon-stroomprijzen-explanation {
    background: #f8f9fa;
    border-left: 4px solid #ff8500;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.zon-stroomprijzen-explanation h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 1.5em;
}

.zon-stroomprijzen-explanation p {
    margin: 0 0 10px 0;
    color: #50575e;
    line-height: 1.6;
}

.zon-stroomprijzen-explanation p:last-child {
    margin-bottom: 0;
}

/* Navigation Section */
.zon-stroomprijzen-navigation {
    margin-bottom: 30px;
    text-align: center;
}

.zon-stroomprijzen-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zon-nav-btn {
    background: #ff8500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.zon-nav-btn:hover {
    background: #e67700;
    color: white;
    text-decoration: none;
}

.zon-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.zon-current-date {
    font-size: 1.2em;
    font-weight: 600;
    color: #1d2327;
    padding: 10px 20px;
    background: #fff4e6;
    border-radius: 6px;
    border: 2px solid #ff8500;
}

.zon-date-selector {
    margin-top: 15px;
}

.zon-date-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.zon-date-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

.zon-date-select:focus {
    outline: none;
    border-color: #ff8500;
    box-shadow: 0 0 0 2px rgba(255, 133, 0, 0.2);
}

/* Table Container */
.zon-stroomprijzen-table-container {
    margin-bottom: 30px;
}

.zon-no-prices {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.zon-no-prices p {
    margin: 0;
    font-size: 0.88em;
    /* 80% of 1.1em */
}

/* Prices Table */
.zon-stroomprijzen-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    table-layout: fixed;
}

.zon-stroomprijzen-table thead {
    background: #ff8500;
    color: white;
}

.zon-stroomprijzen-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88em;
    /* 80% of 1.1em */
}

.zon-stroomprijzen-table th.zon-header-right {
    text-align: right;
    /* Right align the quarter headers */
}

.zon-stroomprijzen-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.88em;
    /* 80% of default size */
}

.zon-stroomprijzen-table tbody tr:hover {
    background: #f8f9fa;
}

.zon-stroomprijzen-table tbody tr:last-child td {
    border-bottom: none;
}

.zon-time {
    font-weight: 400;
    /* Not bold */
    color: #1d2327;
    font-size: 0.88em;
    /* 80% of 1.1em */
    min-width: 120px;
}

.zon-price {
    font-weight: 600;
    text-align: right;
    font-size: 0.88em;
    /* 80% of 1.1em */
    min-width: 100px;
}

.zon-price-positive {
    color: #28a745;
}

.zon-price-negative {
    color: #dc3545;
}

/* Price Summary */
.zon-price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.zon-price-summary h4 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 1.3em;
}

.zon-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.zon-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.zon-stat-label {
    font-weight: 600;
    color: #6c757d;
    flex-shrink: 0;
    /* Prevent label from shrinking */
    margin-right: 10px;
}

.zon-stat-value {
    font-weight: 700;
    color: #1d2327;
    white-space: nowrap;
    /* Prevent text from breaking */
    flex-shrink: 0;
    /* Prevent value from shrinking */
}

/* Call to Action */
.zon-stroomprijzen-cta {
    background: linear-gradient(135deg, #ff8500 0%, #e67700 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

.zon-stroomprijzen-cta h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: white;
}

.zon-stroomprijzen-cta p {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zon-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.zon-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.zon-cta-primary {
    background: white;
    color: #ff8500;
    border-color: white;
}

.zon-cta-primary:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    color: #ff8500;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.zon-cta-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.zon-cta-secondary:hover {
    background: white;
    color: #ff8500;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .zon-stroomprijzen-container {
        padding: 15px;
    }

    .zon-stroomprijzen-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .zon-current-date {
        order: -1;
        margin-bottom: 10px;
    }

    .zon-stroomprijzen-table {
        font-size: 14px;
    }

    .zon-stroomprijzen-table th,
    .zon-stroomprijzen-table td {
        padding: 10px;
    }

    .zon-summary-stats {
        grid-template-columns: 1fr;
    }

    .zon-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .zon-cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .zon-stroomprijzen-container {
        padding: 10px;
    }

    .zon-stroomprijzen-explanation {
        padding: 15px;
    }

    .zon-stroomprijzen-cta {
        padding: 20px;
    }

    .zon-stroomprijzen-cta h3 {
        font-size: 1.5em;
    }

    .zon-stroomprijzen-table {
        font-size: 13px;
    }

    .zon-stroomprijzen-table th,
    .zon-stroomprijzen-table td {
        padding: 8px;
    }
}

/* Loading States */
.zon-loading {
    opacity: 0.6;
    pointer-events: none;
}

.zon-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff8500;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: zon-spin 1s linear infinite;
}

@keyframes zon-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.zon-stroomprijzen-container:focus {
    outline: none;
}

.zon-nav-btn:focus,
.zon-cta-btn:focus {
    outline: 2px solid #ff8500;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .zon-stroomprijzen-navigation,
    .zon-stroomprijzen-cta {
        display: none;
    }

    .zon-stroomprijzen-container {
        padding: 0;
    }

    .zon-stroomprijzen-table {
        box-shadow: none;
        border: 1px solid #000;
    }

    .zon-stroomprijzen-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}