/* Override the page-content-modal to be transparent for floating effect */
.page-content-modal:has(.list-card-gallery-grid) {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.list-card-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 20px 40px;
}

.list-card {
    background-color: var(--color-background-page);
    border-style: solid;
    border-width: 2px;
    border-color: var(--color-background-modal-content);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 450px;
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--very-dark-alpha-20);
}


.list-card-media {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-background-modal-dark), var(--color-background-modal-light));
}

.list-card-video,
.list-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-card:hover .list-card-video,
.list-card:hover .list-card-image {
    transform: scale(1.05);
}

.list-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.list-card-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

.list-card-placeholder-text {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    z-index: 1;
    position: relative;
}

.list-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.list-card-header {
    margin-bottom: 15px;
}

.list-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.list-card-description {
    font-size: 1rem;
    color: var(--color-text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.list-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.list-card-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-draft, .status-concept {
    background: rgb(216, 103, 103);
    color: rgb(102, 26, 26);
}

.status-placeholder, .status-development {
    background: rgb(239, 147, 72);
    color: rgb(51, 30, 12);
}

.status-complete, .status-published, .status-operational {
    background: rgb(78, 214, 128);
    color: rgb(16, 85, 41);
}

.list-card-date {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    opacity: 0.6;
}

.list-card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--color-background-modal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.list-card:hover .list-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Private entry styles */
.list-card-private {
    position: relative;
    opacity: 0.85;
    border-color: #d4a574;
    border-style: dashed;
}

.list-card-private::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(212, 165, 116, 0.05) 10px,
        rgba(212, 165, 116, 0.05) 20px
    );
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-md);
}

.list-card-private-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4a574;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.list-card-private:hover {
    opacity: 1;
    border-color: #c4955f;
}

.list-card-private .list-card-media {
    position: relative;
}

.list-card-private .list-card-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 165, 116, 0.1);
    pointer-events: none;
}


@media (max-width: 900px) {
    .list-card-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .list-card-gallery-title {
        font-size: 2.5rem;
    }
    
    .list-card {
        min-height: 400px;
    }
    
    .list-card-media {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .list-card-gallery-main {
        padding: 80px 15px 30px;
    }
    
    .list-card-gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .list-card-gallery-title {
        font-size: 2rem;
    }
    
    .list-card-gallery-description {
        font-size: 1rem;
    }
    
    .list-card {
        min-height: 350px;
    }
}