/* Partner Promotions Styles */

.hf-partner-promotions-wrapper {
    width: 100%;
    margin: 2rem 0;
}

/* Controls - Search and Filter */
.hf-partner-promotions-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hf-partner-promotions-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Search Input */
.hf-partner-promotions-search {
    flex: 1;
    max-width: 400px;
}

@media (max-width: 768px) {
    .hf-partner-promotions-search {
        max-width: 100%;
    }
}

.hf-partner-promotions-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    color: #374151;
    background: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hf-partner-promotions-search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hf-partner-promotions-search-input::placeholder {
    color: #9ca3af;
}

/* Filter Dropdown */
.hf-partner-promotions-filter {
    min-width: 220px;
}

@media (max-width: 768px) {
    .hf-partner-promotions-filter {
        width: 100%;
    }
}

.hf-partner-promotions-filter-select {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    color: #374151;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1L6 6L11 1" stroke="%23374151" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    font-family: inherit;
}

.hf-partner-promotions-filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hf-partner-promotions-filter-select:hover {
    border-color: #d1d5db;
}

/* Grid Layout */
.hf-partner-promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Column variations */
.hf-partner-promotions-wrapper--cols-1 .hf-partner-promotions-grid {
    grid-template-columns: 1fr;
}

.hf-partner-promotions-wrapper--cols-2 .hf-partner-promotions-grid {
    grid-template-columns: repeat(2, 1fr);
}

.hf-partner-promotions-wrapper--cols-3 .hf-partner-promotions-grid {
    grid-template-columns: repeat(3, 1fr);
}

.hf-partner-promotions-wrapper--cols-4 .hf-partner-promotions-grid {
    grid-template-columns: repeat(4, 1fr);
}

.hf-partner-promotions-wrapper--cols-5 .hf-partner-promotions-grid {
    grid-template-columns: repeat(5, 1fr);
}

.hf-partner-promotions-wrapper--cols-6 .hf-partner-promotions-grid {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 640px) {
    .hf-partner-promotions-wrapper--cols-1 .hf-partner-promotions-grid,
    .hf-partner-promotions-wrapper--cols-2 .hf-partner-promotions-grid,
    .hf-partner-promotions-wrapper--cols-3 .hf-partner-promotions-grid,
    .hf-partner-promotions-wrapper--cols-4 .hf-partner-promotions-grid,
    .hf-partner-promotions-wrapper--cols-5 .hf-partner-promotions-grid,
    .hf-partner-promotions-wrapper--cols-6 .hf-partner-promotions-grid,
    .hf-partner-promotions-grid {
        grid-template-columns: 1fr;
    }
}

/* Promotion Card */
.hf-promotion-card {
    background: #f9fafb;
    border-radius: 25px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.hf-promotion-card:hover {
    background: #e0e7ff;
}

.hf-promotion-card:hover .hf-promotion-card__icon {
    background: #e0e7ff;
}

.hf-promotion-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* Card Icon/Logo Wrapper */
.hf-promotion-card__icon-wrapper {
    flex-shrink: 0;
}

.hf-promotion-card__icon {
    width: 88px;
    height: 88px;
    border-radius: 30px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hf-promotion-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.hf-promotion-card__icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border-radius: 30px;
}

/* Card Content */
.hf-promotion-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* Card Header - Title and Badge Row */
.hf-promotion-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hf-promotion-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

/* Featured Badge */
.hf-promotion-card__badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.hf-promotion-card__badge--featured {
    background: #ef4444;
    color: #fff;
}

/* Category */
.hf-promotion-card__category {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Subtitle */
.hf-promotion-card__subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7c3aed;
    margin: 0;
    line-height: 1.5;
}

/* Status */
.hf-promotion-card__status {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.hf-promotion-card__status--partner {
    color: #7c3aed;
}

.hf-promotion-card__status--coming-soon {
    color: #6366f1;
}

/* No Results */
.hf-partner-promotions-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #6b7280;
    font-size: 1rem;
}

.hf-partner-promotions-no-results p {
    margin: 0;
}

.hf-partner-promotions-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Pagination - Simple centered style matching integrations */
.hf-partner-promotions-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hf-partner-promotions-pagination__button {
    min-width: 32px;
    height: 32px;
    padding: 0.5rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #374151;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.hf-partner-promotions-pagination__button svg {
    display: block;
    flex-shrink: 0;
}

.hf-partner-promotions-pagination__button:hover:not(:disabled) {
    color: #374151;
}

.hf-partner-promotions-pagination__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hf-partner-promotions-pagination__button--active {
    font-weight: 600;
    color: #2D2AA5;
}

.hf-partner-promotions-pagination__button--active:hover {
    color: #2D2AA5;
}

.hf-partner-promotions-pagination__ellipsis {
    padding: 0 0.25rem;
    color: #9ca3af;
}

/* Hidden State */
.hf-promotion-card.is-hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hf-partner-promotions-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .hf-partner-promotions-wrapper {
        margin: 1.5rem 0;
    }

    .hf-promotion-card {
        padding: 1.25rem;
    }

    .hf-promotion-card__link {
        flex-direction: column;
        gap: 1rem;
    }

    .hf-promotion-card__icon {
        width: 64px;
        height: 64px;
    }

    .hf-promotion-card__title {
        font-size: 1rem;
    }

    .hf-partner-promotions-pagination__button {
        min-width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
}
