/* ============================================
   Rockmont Video Library - Frontend Styles
   ============================================ */

/* ---- Video Grid (Shortcode) ---- */

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ---- Video Card ---- */
.video-card {
    background: #fff;
    border: 1px solid var(--enfold-header-color-border) !important;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.video-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border: 1px solid #fbbf24 !important;
}

.video-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.video-card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

.video-card-body {
    padding: 1rem;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.video-card-date {
    color: #6b7280;
}

.video-decade-card-count {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* ---- Login Notice ---- */
.video-gallery-login-notice a {
    color: #3b82f6;
    text-decoration: underline;
}

.video-gallery-login-notice .flex_column {
    padding: 150px 30px 80px 30px;
    background: url(/wp-content/uploads/2026/01/textured-CTA-box-2.png) 50% 50% no-repeat scroll;
}

#top #wrap_all .video-gallery-login-notice .avia-button {
    background-color: #ffca13;
    border-color: #ffca13;
    color: #4b2f0b;
    border-style: none;
    border-radius: 0 0 0 0;
    transition: all 0.4s ease-in-out;
    padding: 10px 10px 5px 15px;
}

#top #wrap_all .video-gallery-login-notice .avia-button:hover {
    background-color: #4b2f0b;
    color: #ffca13;
    transition: all 0.4s ease-in-out;
}

#top #wrap_all .video-gallery-login-notice .avia-button:hover .avia_button_background {
    border-radius: 0 0 0 0;
}

#top #wrap_all .video-gallery-login-notice .avia-button .avia-svg-icon svg:first-child {
    fill: #4b2f0b;
    stroke: #4b2f0b;
}

#top #wrap_all .video-gallery-login-notice .avia-button:hover .avia-svg-icon svg:first-child {
    fill: #ffca13;
    stroke: #ffca13;
}

/* ---- Pagination ---- */
.video-gallery-pagination {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.video-gallery-pagination .pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-gallery-pagination .page-link {
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: #4b2f0b;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.video-gallery-pagination .page-link:hover {
    background: #4b2f0b;
    border-color: #4b2f0b;
    color: #ffca13 !important;
}

.video-gallery-pagination .page-link.current:hover {
    color: #4b2f0b !important;
}

.video-gallery-pagination .page-link.current {
    background: #ffca13;
    color: #fff;
    border-color: #ffca13;
}

.video-gallery-pagination .page-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #6b7280;
}

.video-gallery-pagination .pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ---- No Results ---- */
.video-gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.video-gallery-empty p {
    font-size: 1.1rem;
}

/* ============================================
   Single Video Page
   ============================================ */

.single-video-header {
    margin-bottom: 2rem;
}

.single-video-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.single-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.single-video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.single-video-tax-link {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

.single-video-tax-link:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.single-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: #000;
}

.single-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-video-description {
    margin-bottom: 2rem;
    color: #374151;
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .single-video-title {
        font-size: 1.5rem;
    }

    .single-video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
}
