/**
 * Pickup Schedule Display Styles
 *
 * Styling for pickup schedule components across multiple pages.
 * Design: Straightforward, prominent, no excessive decoration.
 */

/* ====== Full Schedule Section (Farm Profile) ====== */
.pickup-schedule-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.pickup-schedule-section.no-schedule {
    background: #fef3c7;
    border-color: #fcd34d;
}

.schedule-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.schedule-description {
    margin-bottom: 20px;
}

.schedule-pattern {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin: 0 0 8px 0;
}

.frequency-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Next Pickup Section */
.next-pickup-section {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.next-pickup-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.next-pickup-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.cutoff-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Upcoming Pickups List */
.upcoming-pickups {
    margin-top: 16px;
}

.upcoming-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.pickup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pickup-list li {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    color: #4b5563;
}

.pickup-list li:last-child {
    margin-bottom: 0;
}

/* ====== Compact Badge (Results Page) ====== */
.shipping-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
}

.shipping-badge.no-schedule {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

/* ====== Shipping Estimate (Cart Page) ====== */
.shipping-estimate-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.shipping-estimate-section.no-estimate {
    background: #fef3c7;
    border-color: #fcd34d;
}

.estimate-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.ship-date {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 12px;
}

.ship-date strong {
    font-weight: 600;
    color: #111827;
}

/* Cutoff Information */
.cutoff-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 12px;
}

.cutoff-warning {
    border: 1px solid #fbbf24;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.cutoff-warning.urgent {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.cutoff-warning strong {
    font-weight: 700;
}

.schedule-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* ====== Order Details Page ====== */
.order-shipping-schedule {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.scheduled-pickup {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.pickup-date {
    font-size: 1rem;
    color: #111827;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.pickup-date strong {
    font-weight: 600;
}

.pickup-date .text-blue-600 {
    color: #2563eb;
    font-weight: 500;
}

/* ====== Responsive Styles ====== */
@media (max-width: 640px) {
    .pickup-schedule-section {
        padding: 16px;
        margin: 16px 0;
    }

    .schedule-title {
        font-size: 1.125rem;
    }

    .schedule-pattern {
        font-size: 1rem;
    }

    .next-pickup-section {
        padding: 12px;
    }

    .next-pickup-date {
        font-size: 1.125rem;
    }

    .shipping-badge {
        font-size: 0.8125rem;
        padding: 5px 10px;
    }

    .pickup-date {
        flex-direction: column;
        gap: 4px;
    }
}

/* ====== Dark Mode Support (Optional) ====== */
@media (prefers-color-scheme: dark) {
    .pickup-schedule-section {
        background: #1f2937;
        border-color: #374151;
    }

    .schedule-title,
    .schedule-pattern {
        color: #f9fafb;
    }

    .frequency-badge {
        background: #1e3a8a;
        color: #93c5fd;
    }

    .next-pickup-section {
        background: #111827;
        border-color: #3b82f6;
    }

    .next-pickup-date {
        color: #f9fafb;
    }

    .pickup-list li {
        background: #111827;
        border-color: #374151;
        color: #d1d5db;
    }
}
