Actions

Template

Template:Videos/styles.css

From Dune Awakening DB

Revision as of 22:48, 1 June 2025 by Operator (talk | contribs) (Created page with "Template:VideoGallery/styles.css Video Gallery system styles for Dune wiki Based on Journey system design: ================================================ VIDEO GALLERY BASE STYLES ================================================: Main Container: .video-gallery-main-container { display: flex; gap: 12px; padding: 12px 0; max-width: 100%; margin: 0 auto; font-family: 'Rajdhani', sans-serif; position: relative; h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Template:VideoGallery/styles.css
   Video Gallery system styles for Dune wiki
   Based on Journey system design */

/* ================================================
   VIDEO GALLERY BASE STYLES
   ================================================ */

/* Main Container */
.video-gallery-main-container {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    height: 850px;
    min-height: 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 - 60% width */
.video-categories {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    padding-right: 10px;
    max-height: 100%;
}

/* Tab Navigation */
.video-tabs-nav {
    display: flex;
    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;
    flex-shrink: 0;
}

.video-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(252, 231, 200, 0.2);
    color: #E3BB7A;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.video-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fce7c8;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

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

/* Tab Content */
.video-tab-content {
    display: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

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

/* Video Section (Purpose Groups) */
.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 */
.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 Card */
.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;
}

.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;
    display: block;
    padding-top: 56.25%;
}

.video-card > * {
    position: absolute;
    inset: 0;
}

.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 {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 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;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

}

.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 - 40% width */
.video-player-panel {
    flex: 0 0 calc(40% - 20px);
    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;
}

.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);
    flex-shrink: 0;
}

.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);
    flex-shrink: 0;
}

.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 {
    display: flex;
    align-items: center;
    gap: 5px;
}

.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);
    flex-shrink: 0;
}

.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 ul {
    margin: 8px 0;
    padding-left: 20px;
}

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

.notes-content a {
    color: #E3BB7A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.notes-content a:hover {
    color: #fce7c8;
    text-decoration: underline;
}

/* Loading State */
.loading {
    opacity: 0.5;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(252, 231, 200, 0.2);
    border-top-color: #fce7c8;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Search Bar (optional) */
.video-search-bar {
    margin-bottom: 15px;
    background: rgba(0, 0, 2, 0.8);
    border: 2px solid rgba(252, 231, 200, 0.3);
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.video-search-input {
    flex: 1;
    background: rgba(0, 0, 2, 0.6);
    border: 1px solid rgba(252, 231, 200, 0.2);
    color: #fce7c8;
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.video-search-input:focus {
    border-color: #fce7c8;
    box-shadow: 0 0 10px rgba(252, 231, 200, 0.3);
}

.video-search-button {
    background: rgba(252, 231, 200, 0.1);
    border: 2px solid rgba(252, 231, 200, 0.3);
    color: #fce7c8;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.video-search-button:hover {
    background: rgba(252, 231, 200, 0.2);
    border-color: #fce7c8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-gallery-main-container {
        flex-direction: column;
        height: auto;
        min-height: 900px;
    }
    
    .video-categories {
        flex: 0 0 auto;
        min-height: 400px;
        max-height: 500px;
    }
    
    .video-player-panel {
        flex: 1 1 auto;
        min-height: 400px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .video-tabs-nav {
        flex-wrap: wrap;
    }
    
    .video-tab {
        flex: 0 0 33.333%;
        border-bottom: 1px solid rgba(252, 231, 200, 0.2);
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .video-title {
        font-size: 12px;
    }
    
    .video-channel {
        font-size: 10px;
    }
}