/**
 * Shortcode Styles for Woo Delivery Routes Scheduler
 */

/* Container */
.wdr-routes-shortcode {
    margin: 30px 0;
}

/* Header */
.wdr-routes-header {
    text-align: center;
    margin-bottom: 40px;
}

.wdr-routes-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3338;
}

.wdr-routes-intro {
    font-size: 16px;
    color: #646970;
    max-width: 600px;
    margin: 0 auto;
}

/* Routes Grid */
.wdr-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Single Route */
.wdr-single-route .wdr-route-card {
    max-width: 800px;
    margin: 0 auto;
}

/* Route Card */
.wdr-route-card {
    background: #fff;
    border: 2px solid #e3e8ee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wdr-route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Route Header */
.wdr-route-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 25px;
}

.wdr-route-name {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.wdr-route-state {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.wdr-route-next-date {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 6px;
}

.wdr-next-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.wdr-next-date {
    font-size: 18px;
    font-weight: 600;
}

/* Route Body */
.wdr-route-body {
    padding: 25px;
}

/* Route Section */
.wdr-route-section {
    margin-bottom: 25px;
}

.wdr-route-section:last-child {
    margin-bottom: 0;
}

.wdr-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3338;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3e8ee;
}

.wdr-icon {
    font-size: 20px;
}

/* Cities Grid */
.wdr-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wdr-city-badge {
    display: inline-block;
    background: #f0f6fc;
    color: #0073aa;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #c3ddec;
    transition: all 0.2s ease;
}

.wdr-city-badge:hover {
    background: #0073aa;
    color: #fff;
}

/* Dates List */
.wdr-dates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wdr-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e3e8ee;
}

.wdr-date-today {
    background: #fff8e5;
    border-color: #f0b849;
}

.wdr-date-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3338;
}

.wdr-date-meta {
    font-size: 13px;
    color: #646970;
    background: #fff;
    padding: 4px 10px;
    border-radius: 12px;
}

.wdr-date-today .wdr-date-meta {
    background: #f0b849;
    color: #fff;
    font-weight: 600;
}

/* No Dates */
.wdr-no-dates {
    color: #646970;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Notice */
.wdr-shortcode-notice {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.wdr-shortcode-notice p {
    margin: 0;
    color: #2c3338;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wdr-routes-grid {
        grid-template-columns: 1fr;
    }

    .wdr-routes-header h2 {
        font-size: 24px;
    }

    .wdr-route-header {
        padding: 20px;
    }

    .wdr-route-name {
        font-size: 20px;
    }

    .wdr-route-body {
        padding: 20px;
    }

    .wdr-next-date {
        font-size: 16px;
    }

    .wdr-date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wdr-date-meta {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .wdr-routes-shortcode {
        margin: 20px 0;
    }

    .wdr-routes-header {
        margin-bottom: 25px;
    }

    .wdr-routes-header h2 {
        font-size: 22px;
    }

    .wdr-routes-intro {
        font-size: 14px;
    }

    .wdr-city-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Print Styles */
@media print {
    .wdr-route-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }

    .wdr-route-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .wdr-route-name {
        color: #000 !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .wdr-route-card {
        background: #1e1e1e;
        border-color: #333;
    }

    .wdr-route-name {
        color: #fff;
    }

    .wdr-section-title {
        color: #fff;
        border-bottom-color: #333;
    }

    .wdr-date-item {
        background: #2a2a2a;
        border-color: #333;
    }

    .wdr-date-value {
        color: #fff;
    }

    .wdr-city-badge {
        background: #2a2a2a;
        color: #4a9eda;
        border-color: #333;
    }

    .wdr-no-dates {
        background: #2a2a2a;
        color: #ccc;
    }
}
