:root {
    --corporate-blue: #002f4b;
    --corporate-teal: #005f73;
    --corporate-gray: #f8f9fa;
    --border-color: #e9ecef;
    --soft-blue: #eef7fb;
    --text-muted: #64748b;
}

/* Page Header styles removed - using global partial */

.ihale-page {
    padding-top: 1.5rem;
}

.ihale-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ihale-card-link:focus-visible {
    outline: none;
}

/* Cards */
.ihale-card {
    position: relative;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    padding: 0;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.ihale-card-link:hover .ihale-card,
.ihale-card-link:focus-visible .ihale-card {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    border-color: #bfd7e5;
}

.ihale-card-link:focus-visible .ihale-card {
    box-shadow: 0 0 0 3px rgba(11, 116, 155, 0.2), 0 18px 36px rgba(15, 23, 42, 0.1);
}

.ihale-card__accent {
    height: 5px;
    background: linear-gradient(90deg, var(--corporate-blue), #0b749b, #30a9c9);
}

.ihale-body {
    padding: 1.5rem 1.6rem 1.2rem;
}

.ihale-card__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.ihale-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ihale-number-badge {
    display: inline-block;
    background: var(--corporate-gray);
    color: var(--corporate-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ihale-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.ihale-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ihale-footer {
    background: linear-gradient(180deg, #fbfdfe, #f8fbfd);
    border-top: 1px solid #e5edf3;
    padding: 1rem 1.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ihale-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.ihale-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--soft-blue);
    color: var(--corporate-blue);
    border: 1px solid #d9eaf1;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.ihale-date-badge {
    width: 88px;
    min-width: 88px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f4fbff, #e8f4fa);
    border: 1px solid #d5e7f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.6rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ihale-date-badge__day {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    color: var(--corporate-blue);
}

.ihale-date-badge__month {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0b749b;
    text-transform: uppercase;
}

.ihale-date-badge__year {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

.ihale-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--corporate-teal);
    font-weight: 600;
    font-size: 0.9rem;
}

.ihale-date--muted {
    color: #94a3b8;
}

.ihale-card__arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--corporate-blue), #0b577b);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 47, 75, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ihale-card-link:hover .ihale-card__arrow,
.ihale-card-link:focus-visible .ihale-card__arrow {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 47, 75, 0.22);
}

/* Pagination */
.pagination .page-link {
    color: var(--corporate-blue);
    border: 1px solid #d8e3ea;
    margin: 0 3px;
    min-width: 38px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.pagination .page-item.active .page-link {
    background-color: var(--corporate-blue);
    border-color: var(--corporate-blue);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #6c757d;
}

.ihale-empty-state {
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ihale-empty-state__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #7c93a3;
    background: #eef5f8;
}

@media (max-width: 767.98px) {
    .ihale-page {
        padding-top: 1rem;
    }

    .ihale-card {
        border-radius: 16px;
    }

    .ihale-body,
    .ihale-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ihale-card__grid {
        grid-template-columns: 1fr;
    }

    .ihale-date-badge {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.45rem;
        padding: 0.75rem 0.9rem;
    }

    .ihale-date-badge__month,
    .ihale-date-badge__year {
        margin-top: 0;
    }

    .ihale-footer {
        align-items: stretch;
    }

    .ihale-card__arrow {
        width: 100%;
        border-radius: 14px;
    }
}
