/* style.css - Dark mode styling with video aspect ratio fix */

/* Global styles */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 40px;
}

.profile-info h1 {
    margin: 0;
    font-size: 28px;
}

.profile-info p {
    margin: 10px 0;
}

.stats {
    display: flex;
    gap: 20px;
}

.stats span {
    font-size: 16px;
}

/* Grid for posts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1; /* Square for thumbnails */
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item img,
.grid-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images and YouTube embeds stay square */
}

.grid-item video {
    width: 100%;
    height: auto; /* Allow natural aspect ratio */
    max-height: 100%; /* Prevent overflow */
    object-fit: contain; /* Show full video without cropping */
}

/* Ensure full-screen video displays correctly */
.grid-item video:fullscreen {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Admin form styles */
form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}

input[type="file"] {
    padding: 10px 0;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #0056b3;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #1e1e1e;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}