/* RESET & VARIABLES */
:root {
    --bg-body: #121212;
    --bg-container: #1f1f1f;
    --accent: #3ea6ff;
    --text-main: #f1f1f1;
    --text-sub: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
}

/* --- HEADER & TABS --- */
.top-nav {
    width: 100%;
    max-width: 1600px;
    padding: 1.5rem 2rem 0 2rem;
    border-bottom: 1px solid #333;
    background-color: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tab-container {
    display: flex;
    gap: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-sub);
    padding-bottom: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
}

/* --- TABS LOGIC --- */
.tab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- VIDEO SECTION --- */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.main-video video {
    width: 100%;
    border-radius: 0.5rem;
}

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

.menu-icon {
    cursor: pointer;
    padding: 5px;
    background: #333;
    border-radius: 5px;
}

/* Full Screen Video Logic */
.container.large-video {
    grid-template-columns: 1fr;
}
.container.large-video .video-playlist {
    display: none;
}

/* Playlist Styling */
.video-playlist {
    background-color: var(--bg-container);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 35rem;
}

.video-playlist .title {
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.video-playlist .videos {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.video-playlist .videos .video {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

.video-playlist .videos .video:hover {
    background-color: #333;
}

.video-playlist .videos .video.active {
    background-color: #2a2a2a;
    border-left: 4px solid gold;
}

.video-playlist .videos .video img {
    width: 1.2rem;
    margin-right: 1rem;
    filter: invert(100%);
}

.video .text h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.video .text .desc {
    font-size: 0.8rem;
    color: var(--text-sub);
}

/* --- IMAGE GRID (COMPACT) --- */
.activity-container {
    width: 100%;
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.activity-header {
    background: var(--bg-container);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 5px solid #d9534f;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 1rem;
}

.card {
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 0.8rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card-user {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.card-user .avatar {
    width: 25px;
    height: 25px;
    background-color: #d9534f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    color: white;
    margin-right: 0.5rem;
}

.card-user .info strong {
    font-size: 0.8rem;
    color: #f1f1f1;
    display: block;
}
.card-user .info span {
    font-size: 0.7rem;
    color: #888;
}

.card img {
    width: 100%;
    height: 140px; /* Uniform Height */
    object-fit: cover;
    object-position: top;
    border-radius: 0.3rem;
    cursor: pointer;
}

/* --- LIGHTBOX (POPUP) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Mobile Responsiveness */
@media screen and (max-width: 990px) {
    .container { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
}

body {
    min-height: 100vh;
    /* Replace 'your-image.jpg' with your actual file name */
background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img.jpg');
    background-size: cover;      /* Makes image fill the screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;/* Prevents tiling */
    background-attachment: fixed;/* Keeps bg fixed while scrolling */
    
    font-family: sans-serif;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}