/* ═══════════════════════════════════════
   MAIN CSS - Additional Styles
   Freshly Couch Cleaning Near Me
═══════════════════════════════════════ */

/* ═══ Pagination Styles ═══ */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    display: inline-flex;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    background: white;
    border: 1px solid #f0e6d9;
    transition: all 0.2s ease;
    text-decoration: none;
}

.page-numbers li a:hover {
    background: #fde8eb;
    color: #C8102E;
    border-color: #C8102E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
}

.page-numbers li span.current {
    background: linear-gradient(135deg, #C8102E, #F5A623);
    color: white;
    border-color: transparent;
}

.page-numbers li a .w-5 {
    width: 20px;
    height: 20px;
}

/* ═══ Smooth Image Loading ═══ */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ═══ Selection Colors ═══ */
::selection {
    background: rgba(200, 16, 46, 0.15);
    color: #1a1a2e;
}

::-moz-selection {
    background: rgba(200, 16, 46, 0.15);
    color: #1a1a2e;
}

/* ═══ Scrollbar Styling ═══ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefaf3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C8102E, #F5A623);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a80d26;
}

/* ═══ Focus Styles ═══ */
:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══ Print Styles ═══ */
@media print {
    .topbar,
    .header,
    .mobile-sticky-bar,
    footer,
    #mobile-menu {
        display: none !important;
    }

    body {
        padding: 0 !important;
    }

    section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
}

/* ═══ Heading anchors for blog ═══ */
.blog-content h2,
.blog-content h3 {
    scroll-margin-top: 100px;
}

/* ═══ WordPress alignments ═══ */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* ═══ Gallery Styles ═══ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 12px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ═══ Before/After Enhanced ═══ */
.ba-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.ba-card:hover::after {
    border-color: #F5A623;
}

/* ═══ Loading Shimmer ═══ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ═══ Responsive Fixes ═══ */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        word-break: break-word;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
