Actions

Template

Template:VideoGallery/styles.css

From Dune Awakening DB

/* Template:VideoGallery/styles.css
   Video Gallery styles for Dune wiki - MediaWiki TemplateStyles compatible
   Updated version with fixes for horizontal tabs, no search, smaller header */

/* ================================================
   HEADER SECTION - REDUCED BY 30%
   ================================================ */
.video-gallery-header {
    text-align: center;
    padding: 20px 15px; /* Reduced from 30px 20px */
    margin-bottom: 15px; /* Reduced from 20px */
    background: linear-gradient(135deg, rgba(252, 231, 200, 0.05) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.3);
    position: relative;
    overflow: hidden;
}

/* Removed the shimmer animation and ::before pseudo-element */

.video-gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px; /* Reduced from 36px */
    font-weight: 900;
    color: #fce7c8;
    text-transform: uppercase;
    letter-spacing: 3px; /* Reduced from 4px */
    text-shadow: 0 0 20px rgba(252, 231, 200, 0.6);
    margin-bottom: 8px; /* Reduced from 10px */
}

.video-gallery-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; /* Reduced from 18px */
    color: #E3BB7A;
    letter-spacing: 1.5px; /* Reduced from 2px */
}

/* ================================================
   MAIN CONTAINER - REDUCED HEIGHT
   ================================================ */
.video-gallery-main-container {
    display: flex !important;
    gap: 12px;
    padding: 12px 0;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    height: 650px; /* Reduced from 850px by 200px */
    min-height: 500px; /* Reduced from 600px */
    overflow: hidden;
    align-items: stretch;
    background: rgba(0,0,2,.3);
    border: 2px solid rgba(252, 231, 200, 0.2);
}

/* Tech pattern overlay */
.video-gallery-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(252, 231, 200, 0.01) 35px,
        rgba(252, 231, 200, 0.01) 70px
    );
    z-index: -1;
}

/* ================================================
   VIDEO CATEGORIES (LEFT SIDE - 60%)
   ================================================ */
.video-categories {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0; /* Removed gap to control spacing manually */
    overflow: hidden;
    padding-right: 10px;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* ================================================
   TAB NAVIGATION - FIXED HORIZONTAL WITH EQUAL SIZING
   ================================================ */
.video-tabs-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0;
    background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    border-radius: 0;
    overflow: hidden;
    height: auto;
    width: 100%;
    margin-bottom: 15px; /* Add space before content */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Tab spans forced to horizontal layout with equal sizing */
.video-tabs-nav span.video-tab {
    flex: 1 1 0 !important; /* Changed from auto to 0 for equal distribution */
    display: inline-flex !important;
    padding: 12px 8px !important; /* Reduced horizontal padding */
    background: transparent;
    border: none;
    border-right: 1px solid rgba(252, 231, 200, 0.2);
    color: #E3BB7A;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px; /* Slightly smaller */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduced */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    float: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 16.666% !important; /* Force equal width (100% / 6 tabs) */
}

.video-tabs-nav span.video-tab:last-child {
    border-right: none;
}

.video-tabs-nav span.video-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fce7c8 0%, #E3BB7A 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-tabs-nav span.video-tab:hover {
    background: rgba(252, 231, 200, 0.05);
    color: #fce7c8;
}

.video-tabs-nav span.video-tab.active {
    background: rgba(252, 231, 200, 0.1);
    color: #fce7c8;
}

.video-tabs-nav span.video-tab.active::before {
    transform: translateY(0);
}

/* ================================================
   SCROLLABLE CONTENT CONTAINER
   ================================================ */
.video-content-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    height: 100%;
    min-height: 0; /* Important for flex children */
}



/* ================================================
   TAB CONTENT CONTAINER
   ================================================ */
.video-tab-content {
    display: none;
}

.video-tab-content.active {
    display: block;
}

/* ================================================
   VIDEO SECTIONS
   ================================================ */
.video-section {
    background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 2px 10px rgba(0,0,0,0.8);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fce7c8 50%, 
        transparent 100%);
    opacity: 0.3;
}

.video-section:hover {
    border-color: rgba(252, 231, 200, 0.4);
    box-shadow: 
        inset 0 0 30px rgba(252, 231, 200, 0.05),
        0 2px 20px rgba(252, 231, 200, 0.1);
}

.video-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fce7c8;
    text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
}

/* ================================================
   VIDEO GRID CONTAINER - NEW WRAPPER
   ================================================ */
.video-grid-container {
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 231, 200, 0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* ================================================
   VIDEO GRID
   ================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================================
   VIDEO CARDS
   ================================================ */
.video-card {
    background: linear-gradient(135deg, rgba(0,0,2,.8) 0%, rgba(12,10,20,.8) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Using padding-bottom trick instead of aspect-ratio */
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.video-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        #fce7c8 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: #fce7c8;
    box-shadow: 
        0 5px 20px rgba(252, 231, 200, 0.2),
        inset 0 0 20px rgba(252, 231, 200, 0.05);
}

.video-card:hover::before {
    opacity: 0.3;
}

.video-card.active {
    border-color: #a855f7;
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.4),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback for videos without thumbnails */
.video-thumbnail.no-thumb {
    background: linear-gradient(135deg, rgba(227, 187, 122, 0.1) 0%, rgba(252, 231, 200, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail.no-thumb::before {
    content: '▶';
    font-size: 36px;
    color: rgba(252, 231, 200, 0.3);
}

/* Video Info Overlay */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.9) 100%);
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    color: #fce7c8;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-channel {
    font-size: 11px;
    color: #E3BB7A;
    opacity: 0.8;
}

.video-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    font-size: 11px;
    color: #fce7c8;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(252, 231, 200, 0.2);
}

/* ================================================
   VIDEO PLAYER PANEL (RIGHT SIDE - 40%)
   ================================================ */
.video-player-panel {
    width: 40%;
    background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
    border: 2px solid rgba(252, 231, 200, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.5),
        0 2px 20px rgba(0,0,0,0.8);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    z-index: 2;
}

.video-player-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fce7c8 50%, 
        transparent 100%);
    opacity: 0.5;
}

/* No Video Selected State */
.no-video-selected {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(252, 231, 200, 0.3);
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-video-selected p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Player Container */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border: 2px solid rgba(252, 231, 200, 0.2);
}

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

/* Video Details Header */
.video-details-header {
    padding: 10px;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
}

.video-main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fce7c8;
    text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
    margin-bottom: 6px;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #E3BB7A;
}

.video-author,
.video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Video Notes Section */
.video-notes-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
    overflow: hidden;
}

.notes-header {
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E3BB7A;
    font-weight: 700;
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
}

.notes-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

/* Markdown-style notes formatting */
.notes-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #fce7c8;
    margin-top: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.notes-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.notes-content li {
    margin-bottom: 6px;
    color: #E0E0E0;
    font-size: 13px;
    line-height: 1.4;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .video-gallery-main-container {
        flex-direction: column;
        height: auto;
        min-height: 700px;
    }
    
    .video-categories {
        width: 100%;
        max-height: 400px;
        padding-right: 0;
    }
    
    .video-player-panel {
        width: 100%;
        height: 350px;
        margin-top: 12px;
    }
    
    .video-tabs-nav {
        flex-wrap: wrap;
    }
    
    .video-tabs-nav span.video-tab {
        flex: 1 1 calc(33.333% - 1px);
        min-width: 100px;
        width: auto !important; /* Override the fixed width on smaller screens */
    }
}

@media (max-width: 768px) {
    .video-gallery-title {
        font-size: 20px;
    }
    
    .video-gallery-subtitle {
        font-size: 12px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .video-tabs-nav span.video-tab {
        font-size: 9px;
        padding: 10px 6px;
        letter-spacing: 0.5px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* ================================================
   MEDIAWIKI SPECIFIC OVERRIDES
   ================================================ */
/* Ensure proper display in MediaWiki content area */
#mw-content-text .video-gallery-main-container {
    clear: both;
}

/* Fix for MediaWiki's default link colors */
.video-gallery-main-container a {
    color: inherit;
    text-decoration: none;
}

/* Fix potential MediaWiki paragraph tags */
.video-gallery-main-container p {
    margin: 0;
}

/* Fix for MediaWiki's table layout interference */
.video-gallery-main-container table {
    display: block !important;
}


/* === Flex row across full width ================================== */
.video-tabs-nav {
  display: flex;
  flex-wrap: nowrap;      /* stay on one row       */
  width: 100%;
  gap: 4px;               /* space between buttons */
}

/* === Each button takes an equal slice ============================ */
.video-tabs-nav .video-tab {
  flex: 1 1 0;            /* equal columns         */
  min-width: 0 !important;/* override old 180 px   */
  box-sizing: border-box; /* include border in flex width */
  text-align: center;
  /* keep your existing bg / border / font rules */
}