/* /assets/css/style-detail.css */

/* General Styles for Style Detail Pages */
.pSEO-container {
    max-width: 75%;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pSEO-container {
        grid-template-columns: 2fr 1fr;
    }
}

/* Breadcrumbs */
.pSEO-breadcrumbs {
    margin-bottom: 1rem;
    color: #666;
    grid-column: 1 / -1;
}

.pSEO-breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.pSEO-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Main Article Content */
.pSEO-article {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.pSEO-article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pSEO-article-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Image Gallery */
.pSEO-gallery {
    margin-top: 2rem;
}

.pSEO-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pSEO-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.pSEO-gallery-grid .image-loader {
    width: 100%;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
}

.pSEO-gallery-grid .image-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pSEO-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.pSEO-gallery-grid img.loaded {
    opacity: 1;
}

/* Sidebar */
.pSEO-sidebar .sidebar-cta {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.pSEO-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pSEO-sidebar p {
    margin-bottom: 1.5rem;
}
