/**
 * @file
 * Styles for the Active Calls block.
 */

.zinco-active-calls-wrapper {
    padding: 60px 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    position: relative;
    overflow: hidden;
}

.zinco-active-calls-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.active-calls-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.active-calls-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.active-calls-header .section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* Call Card */
.call-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 5px solid #38ef7d;
}

.call-card.call-urgent {
    border-left-color: #dc3545;
}

.call-card.call-warning {
    border-left-color: #ffc107;
}

.call-card.call-normal {
    border-left-color: #28a745;
}

.call-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.call-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.call-card-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.call-status-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-status-badge i {
    font-size: 14px;
}

.call-closing-date {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 60px;
}

.closing-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #11998e;
    line-height: 1;
}

.closing-month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #38ef7d;
    text-transform: uppercase;
    margin-top: 4px;
}

.call-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.call-urgency-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.call-urgency-label.urgency-urgent {
    background: #ffe5e5;
    color: #dc3545;
}

.call-urgency-label.urgency-warning {
    background: #fff3cd;
    color: #856404;
}

.call-urgency-label.urgency-normal {
    background: #d4edda;
    color: #155724;
}

.call-urgency-label i {
    font-size: 14px;
}

.call-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-card-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #11998e;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.call-card-type i {
    font-size: 14px;
}

.call-card-dates {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.call-card-dates .date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

.call-card-dates .date-item:last-child {
    margin-bottom: 0;
}

.call-card-dates .date-item i {
    font-size: 14px;
    color: #11998e;
}

.call-card-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #11998e;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.call-card:hover .call-card-read-more {
    gap: 12px;
}

.call-card-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.call-card:hover .call-card-read-more i {
    transform: translateX(4px);
}

/* No Calls Message */
.no-calls-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.9);
}

.no-calls-message i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-calls-message p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .active-calls-header .section-title {
        font-size: 30px;
    }

    .active-calls-header .section-subtitle {
        font-size: 16px;
    }

    .call-card-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .zinco-active-calls-wrapper {
        padding: 40px 0;
    }

    .active-calls-header .section-title {
        font-size: 26px;
    }

    .active-calls-header .section-subtitle {
        font-size: 15px;
    }

    .call-card-header {
        padding: 16px;
        min-height: 70px;
    }

    .call-closing-date {
        min-width: 50px;
        padding: 8px 10px;
    }

    .closing-day {
        font-size: 24px;
    }

    .closing-month {
        font-size: 11px;
    }

    .call-card-title {
        font-size: 17px;
    }

    .call-card-description {
        font-size: 13px;
    }
}