/**
 * Upcoming Intakes Widget Styles
 * Version: 1.0.0
 */

/* =================================
   Widget Container
================================= */
.upcoming-intakes-widget {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    padding: 30px 0;
}

/* =================================
   Section Title
================================= */
.upcoming-intakes-section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 40px;
    line-height: 1.2;
    color: #1a1a1a;
    text-align: center;
}

/* =================================
   Intakes List
================================= */
.upcoming-intakes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =================================
   Intake Item
================================= */
.intake-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intake-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Intake type indicator */
.intake-item.intake-type-promotion {
    border-left: 4px solid #ff6b6b;
}

.intake-item.intake-type-intake {
    border-left: 4px solid #4a7cff;
}

/* =================================
   Item Header
================================= */
.intake-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 20px;
}

.intake-item-header-left {
    flex: 1;
}

/* =================================
   Item Title
================================= */
.intake-item-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
}

/* =================================
   Promotional Badge
================================= */
.intake-badge {
    display: inline-block;
    background-color: #ff6b6b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* =================================
   Date Display
================================= */
.intake-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 120px;
}

.intake-date-label {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.intake-date-value {
    font-size: 18px;
    font-weight: 700;
    color: #4a7cff;
    line-height: 1.2;
}

/* =================================
   Excerpt
================================= */
.intake-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 16px;
}

/* =================================
   Item Footer
================================= */
.intake-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =================================
   Meta Information
================================= */
.intake-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.intake-meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666666;
    gap: 6px;
}

.intake-meta-item i {
    color: #4a7cff;
    font-size: 14px;
}

.intake-location {
    font-weight: 500;
}

.intake-deadline {
    color: #999999;
}

/* =================================
   CTA Button
================================= */
.intake-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #4a7cff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.intake-cta-button:hover {
    background-color: #3461d9;
    color: #ffffff;
    text-decoration: none;
    transform: translateX(2px);
}

.intake-cta-button:focus {
    outline: 2px solid #4a7cff;
    outline-offset: 2px;
}

.intake-cta-button .cta-icon {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.intake-cta-button:hover .cta-icon-right {
    transform: translateX(3px);
}

.intake-cta-button:hover .cta-icon-left {
    transform: translateX(-3px);
}

/* =================================
   Empty State
================================= */
.upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 600px;
    transition: all 0.3s ease;
}

.upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message:hover {
    background: #f1f3f5;
    border-color: #9ca3af;
}

.no-intakes-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: #9ca3af;
    opacity: 0.8;
}

.no-intakes-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.no-intakes-text {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    max-width: 400px;
}

/* =================================
   Responsive Adjustments
================================= */

/* Tablet */
@media (max-width: 1024px) {
    .upcoming-intakes-section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .intake-item {
        padding: 20px;
    }

    .intake-item-title {
        font-size: 20px;
    }

    .intake-date-value {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .upcoming-intakes-widget {
        padding: 20px 0;
    }

    .upcoming-intakes-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .upcoming-intakes-list {
        gap: 16px;
    }

    .intake-item {
        padding: 16px;
    }

    .intake-item-header {
        flex-direction: column;
        gap: 12px;
    }

    .intake-date {
        align-items: flex-start;
        text-align: left;
        min-width: auto;
    }

    .intake-item-title {
        font-size: 18px;
    }

    .intake-date-value {
        font-size: 15px;
    }

    .intake-excerpt {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .intake-item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .intake-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .intake-meta-item {
        font-size: 13px;
    }

    .intake-cta-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Empty State - Mobile */
    .upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message {
        padding: 40px 24px;
    }

    .no-intakes-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .no-intakes-text {
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .upcoming-intakes-section-title {
        font-size: 24px;
    }

    .intake-item {
        padding: 14px;
    }

    .intake-item-title {
        font-size: 17px;
    }

    .intake-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .intake-date-label {
        font-size: 11px;
    }

    .intake-date-value {
        font-size: 14px;
    }

    .intake-excerpt {
        font-size: 13px;
    }

    /* Empty State - Small Mobile */
    .upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message {
        padding: 32px 20px;
    }

    .no-intakes-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .no-intakes-text {
        font-size: 14px;
    }
}

/* =================================
   Accessibility
================================= */
.intake-cta-button:focus-visible {
    outline: 2px solid #4a7cff;
    outline-offset: 2px;
}

.intake-item:focus-within {
    outline: 2px solid #4a7cff;
    outline-offset: 2px;
}

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

    .intake-item:hover {
        transform: none;
    }

    .intake-cta-button:hover {
        transform: none;
    }

    .intake-cta-button:hover .cta-icon-right,
    .intake-cta-button:hover .cta-icon-left {
        transform: none;
    }
}

/* =================================
   Print Styles
================================= */
@media print {
    .intake-item {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .intake-cta-button {
        display: none;
    }

    .intake-badge {
        border: 1px solid #ccc;
        background: transparent;
        color: #000;
    }
}

/* =================================
   Dark Mode Support (Optional)
================================= */
@media (prefers-color-scheme: dark) {
    .intake-item {
        background: #1e1e1e;
        border-color: #333333;
        color: #ffffff;
    }

    .intake-item-title {
        color: #ffffff;
    }

    .intake-excerpt {
        color: #cccccc;
    }

    .intake-meta-item {
        color: #999999;
    }

    .intake-date-label {
        color: #999999;
    }

    /* Empty State - Dark Mode */
    .upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message {
        background: #1e1e1e;
        border-color: #333333;
    }

    .upcoming-intakes-widget.upcoming-intakes-empty .no-intakes-message:hover {
        background: #252525;
        border-color: #444444;
    }

    .no-intakes-icon {
        color: #6b7280;
    }

    .no-intakes-text {
        color: #9ca3af;
    }
}
