/* Estilos para página de listagem */

/* Page Header */
.page-header {
    margin: 40px 0 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #4C5299;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #90619E;
}

.breadcrumb span:not(:last-child) {
    color: #666;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #ccc;
}

/* Filtros */
.filters-section {
    margin: 30px 0;
    padding: 20px;
    background: #252525;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.filter-select {
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-width: 180px;
}

.filter-select:hover {
    border-color: #4C5299;
}

.filter-select:focus {
    outline: none;
    border-color: #90619E;
    background: #222;
}

.results-count {
    margin-left: auto;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.results-count span {
    color: #4C5299;
    font-weight: bold;
}

/* Grid de Itens */
.items-grid-section {
    margin: 40px 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.item-card {
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: #4C5299;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.item-badge.secondary {
    background: #90619E;
}

.item-badge.random {
    background: #28a745;
}

.item-content {
    padding: 20px;
}

.item-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.item-description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.item-type {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.item-date {
    font-size: 12px;
    color: #666;
}

/* Paginação */
.pagination-section {
    margin: 50px 0 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 20px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #4C5299;
    border-color: #4C5299;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pagination-number:hover {
    background: #333;
    border-color: #4C5299;
}

.pagination-number.active {
    background: #4C5299;
    border-color: #4C5299;
    font-weight: bold;
}

.pagination-dots {
    color: #666;
    padding: 0 5px;
}

/* Estados de loading e erro */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
    font-size: 18px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #dc3545;
}

/* Media queries para responsividade */
@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .results-count {
        margin-left: 0;
        text-align: center;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .item-image {
        height: 180px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin: 20px 0 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .filters-section {
        padding: 15px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-image {
        height: 200px;
    }

    .item-content {
        padding: 15px;
    }

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

    .pagination-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

