/**
 * Resources Page Styles
 * Minimal additions to gallery-filter.css for resource-specific elements
 */

/* Resource Card Tag (category badge) */
.resource-card-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

/* Resource Card Button (action text) */
.resource-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
}

.resource-card-button::after {
    content: '→';
    transition: transform 0.3s ease;
}

.gallery-filter-card:hover .resource-card-button {
    color: var(--primary-dark);
}

.gallery-filter-card:hover .resource-card-button::after {
    transform: translateX(4px);
}

/* Resource Modal - reuses inspiration modal structure */
.resource-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.resource-modal-overlay.is-active {
    display: block;
}

.resource-modal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.resource-modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: resourceModalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes resourceModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.resource-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.resource-modal-close svg {
    color: #333;
}

.resource-modal-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.resource-modal-body::-webkit-scrollbar {
    width: 8px;
}

.resource-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.resource-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.resource-modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.resource-modal-body .inspiration-content-section {
    padding: 0 2rem 2rem 2rem;
    background: #fff;
}

.resource-modal-body .inspiration-content-container {
    max-width: none;
    padding: 0;
}

/* Video Section */
.resource-modal-video-section,
.resource-modal-info-section {
    padding: 2rem;
}

.resource-modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 1.5rem 0;
    padding-right: 3rem;
}

.resource-modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    margin-bottom: 1.5rem;
}

.resource-modal-video-container iframe,
.resource-modal-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.resource-modal-description {
    font-size: .85rem;
    text-align: center;
    font-style: italic;
    line-height: 1.6;
    color: #333;
}

.resource-modal-content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.resource-modal-description p,
.resource-modal-content-text p {
    margin: 0 0 1rem 0;
}

.resource-modal-description p,
.resource-modal-content-text p {
    margin: 0 0 1rem 0;
}

/* Loading */
.resource-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.resource-modal-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .resource-modal-container {
        padding: 1rem;
    }

    .resource-modal-video-section,
    .resource-modal-info-section {
        padding: 1.5rem;
    }

    .resource-modal-title {
        font-size: 1.5rem;
        padding-right: 2.5rem;
    }

    .resource-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
}