/* -------------------------------------------------------------------
 *  PHOTOS LIST PAGE - PORTRAIT STYLE (3:4 Ratio)
 * ------------------------------------------------------------------- */

/* --- HEADER SECTION --- */
.page-header {
    background-color: var(--light);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

/* --- PHOTOS WALL (Portrait Grid) --- */
.photos-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- PHOTO TILE (Portrait 3:4) --- */
.photo-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.photo-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
    border-color: var(--primary);
}

.photo-tile-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 17px;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.photo-tile:hover .photo-img {
    transform: scale(1.08);
}

/* Subtle shine overlay on hover */
.photo-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: 18px;
}

.photo-tile:hover::after {
    opacity: 1;
}

/* -------------------------------------------------------------------
 *  EMPTY STATE
 * ------------------------------------------------------------------- */
.empty-state-course {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--soft-bg);
    color: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* -------------------------------------------------------------------
 *  PAGINATION FOOTER
 * ------------------------------------------------------------------- */
.photos-footer {
    width: 100%;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.result-text {
    color: var(--muted);
    font-size: 0.95rem;
}

.pagination-container {
    margin-left: auto;
}

.saas-pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.pagination-link:not(.disabled):hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--soft-bg);
    transform: translateY(-1px);
}

.page-item.active .pagination-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-item.disabled .pagination-link {
    background-color: var(--light);
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.7;
}

/* -------------------------------------------------------------------
 *  RESPONSIVE
 * ------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .photos-wall {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .photos-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .photo-tile {
        border-radius: 14px;
    }

    .photo-tile-inner {
        border-radius: 13px;
    }

    .photos-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        margin-top: 30px;
    }

    .pagination-container {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .photos-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-tile {
        border-radius: 12px;
    }

    .photo-tile-inner {
        border-radius: 11px;
    }
}