/* ============================================
   Gallery Page Specific Styles
   ============================================ */

/* Gallery Page Layout */
.gallery-page {
    padding: 180px 0 100px;
    min-height: 100vh;
    background: var(--primary-white);
}

/* Gallery Loading Indicator - Hide since we're using CSS-only */
.gallery-loader {
    display: none;
}

/* Gallery Loading Indicator */
.gallery-loader {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.gallery-loader.hidden {
    display: none;
}

.gallery-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-top: 1rem;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--marble-gray);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-info {
    flex: 1;
    min-width: 200px;
}

.pagination-info {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--primary-white);
    border-radius: 5px;
}

.pagination-info span {
    color: var(--rose-gold);
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: var(--rose-gold);
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--soft-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    background: var(--light-gray);
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--marble-gray);
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 50%;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover {
    background: var(--light-gray);
    border-color: var(--rose-gold);
}

.page-number.active {
    background: var(--rose-gold);
    color: var(--primary-white);
    border-color: var(--rose-gold);
}

.page-number.dots {
    cursor: default;
    background: transparent;
    border: none;
}

.page-number.dots:hover {
    background: transparent;
    border: none;
}

/* Loading State */
.gallery-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.gallery-loading::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--rose-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-loading-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .gallery-page {
        padding: 150px 0 80px;
    }

    .page-title {
        font-size: 3rem;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-info {
        text-align: center;
    }

    .pagination-controls {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .pagination-numbers {
        justify-content: center;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .gallery-page {
        padding: 220px 0 60px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .pagination-numbers {
        order: -1;
    }
}
