/**
 * Robertstown Explore More Plugin Styles
 * Version: 1.1.2
 */

:root {
    --rstown-blue: #0033A0;
    --rstown-blue-hover: #002570;
    --rstown-grey-light: #f5f5f5;
    --rstown-grey-border: #e0e0e0;
    --rstown-grey-placeholder: #d0d0d0;
}

/* Section container */
.rstown-explore-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rstown-grey-border);
}

/* Section title */
.rstown-explore-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rstown-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Card grid - fixed width cards, centered */
.rstown-explore-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Individual card - fixed width */
.rstown-explore-card {
    display: block;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.rstown-explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

/* Card image container */
.rstown-explore-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rstown-grey-placeholder);
}

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

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

/* Placeholder for pages without featured images - plain grey */
.rstown-explore-placeholder {
    width: 100%;
    height: 100%;
    background: var(--rstown-grey-placeholder);
}

/* Title overlay */
.rstown-explore-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
}

/* Card title */
.rstown-explore-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.rstown-explore-card:hover .rstown-explore-card-title {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rstown-explore-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .rstown-explore-title {
        font-size: 1.3rem;
    }

    .rstown-explore-grid {
        gap: 1rem;
    }

    .rstown-explore-card {
        width: 280px;
    }

    .rstown-explore-card-title {
        font-size: 1.15rem;
    }
}

/* Very small screens - full width cards */
@media (max-width: 360px) {
    .rstown-explore-card {
        width: 100%;
    }
}
