/* Videos Page Specific Styles */

/* Video Filters */
.video-filters {
    padding: 2rem 0;
    border-bottom: 1px solid #334155;
    background: #0f172a;
}

.filters-content {
    display: flex;
    justify-content: center;
}

.category-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-icon {
    color: #94a3b8;
}

/* Videos Section */
.videos-section {
    padding: 3rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.video-item {
    background: #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.video-item:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 4rem;
    height: 4rem;
    background: #06b6d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    transform: scale(1.1);
    background: #22d3ee;
}

.duration-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #f8fafc;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    border-radius: 0.25rem;
}

.video-info {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.video-item:hover .video-title {
    color: #06b6d4;
}

.video-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Video Modal */
.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 70vh;
}

.modal-video {
    background: #000;
}

.modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-category {
    display: inline-block;
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.modal-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.video-details {
    margin-bottom: 2rem;
}

.video-details h4 {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-details ul {
    list-style: none;
    padding: 0;
}

.video-details li {
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.video-details li::before {
    content: '•';
    color: #06b6d4;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .modal-video {
        height: 50vh;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .video-item {
        margin-bottom: 1rem;
    }
    
    .videos-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .play-button {
        width: 3rem;
        height: 3rem;
    }
    
    .video-filters {
        padding: 1rem 0;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
/* Basis modal-styles – kun hvis du ikke allerede har dem i styles.css / gallery.css */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #1e293b;
  border-radius: .75rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(51,65,85,.8);
  border: none;
  color: #f8fafc;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.modal-close:hover { background: #475569; }
