@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color:black;
    color: #030303;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

/* Left Section */
.left-section {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.left-section img {
    width: auto;
    max-width: 60px;
    padding-left: 16px;
}

/* Middle Section */
.mid-section {
    display: flex;
    align-items: center;
    margin-left: -9%;
}

.mid-section form {
    display: flex;
    height: 40px;
    width: 628px;
}

.mid-section input {
    width: 100%;
    padding: 10px;
    font-size: 1.6rem;
    border: 1px solid #d3d3d3;
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
}

.mid-section button {
    width: 64px;
    border: 1px solid #d3d3d3;
    border-radius: 0 2px 2px 0;
    background-color: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mid-section button:hover {
    background-color: #e0e0e0;
}

.mid-section .mic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mid-section .mic:hover {
    background-color: #e0e0e0;
}

/* Right Section */
.right-section a {
    padding-right: 18px;
    text-decoration: none;
    color: black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.right-section a:hover {
    color: #606060;
}

/* Content Area */
.content-area {
    display: flex;
    height: calc(100vh - 56px);
    background-color: #f9f9f9;
}

/* Sidebar */
aside {
    width: 280px;
    background-color: white;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

nav {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: black;
    font-size: 1.4rem;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-link i {
    font-size: 2rem;
    margin-right: 16px;
}

.nav-link span {
    line-height: 2em;
    font-weight: 400;
    color: #030303;
}

hr {
    height: 1px;
    background-color: #e5e5e5;
    border: none;
    margin: 10px 0;
}

nav p {
    font-size: 1.4rem;
    color: #606060;
    font-weight: 500;
    padding: 8px 16px;
    text-transform: uppercase;
}

.channel-img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

main {
    width: 100%;
    height: 100%;
    padding: 35px 15px;
    border-top: 1px solid #ddd;
    overflow-y: auto;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-around;
    padding: 16px;
}

.video {
    display: flex;
    flex-direction: column;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video .thumbnail img {
    width: 100%;
    height: 170px; /* حدد ارتفاع ثابت للصورة */
    object-fit: cover; /* لجعل الصورة متناسقة */
}

.video .video-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
}

.video .video-details .creator-img img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 8px;
}

.video .video-details .title {
    display: flex;
    flex-direction: column;
}

.video .video-details .title a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 4px;
}

.video .video-details .title span {
    font-size: 12px;
    color: #555;
}

.video-creator:hover {
    color: black;
}
/* ===== Base Styles & Reset ===== */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #777;
  --max-width: 1200px;
  --gutter: 15px;
  --border-radius: 4px;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: var(--font-main);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* ===== Layout & Grid System ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

[class*="col-"] {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.col-xs-1 { width: 8.33%; }
.col-xs-2 { width: 16.66%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33%; }
.col-xs-5 { width: 41.66%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33%; }
.col-xs-8 { width: 66.66%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33%; }
.col-xs-11 { width: 91.66%; }
.col-xs-12 { width: 100%; }

/* ===== Responsive Breakpoints ===== */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm-1 { width: 8.33%; }
  .col-sm-2 { width: 16.66%; }
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.33%; }
  .col-sm-5 { width: 41.66%; }
  .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.33%; }
  .col-sm-8 { width: 66.66%; }
  .col-sm-9 { width: 75%; }
  .col-sm-10 { width: 83.33%; }
  .col-sm-11 { width: 91.66%; }
  .col-sm-12 { width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-1 { width: 8.33%; }
  .col-md-2 { width: 16.66%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.33%; }
  .col-md-5 { width: 41.66%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.33%; }
  .col-md-8 { width: 66.66%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.33%; }
  .col-md-11 { width: 91.66%; }
  .col-md-12 { width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-1 { width: 8.33%; }
  .col-lg-2 { width: 16.66%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.33%; }
  .col-lg-5 { width: 41.66%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.33%; }
  .col-lg-8 { width: 66.66%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.33%; }
  .col-lg-11 { width: 91.66%; }
  .col-lg-12 { width: 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .col-xl-1 { width: 8.33%; }
  .col-xl-2 { width: 16.66%; }
  .col-xl-3 { width: 25%; }
  .col-xl-4 { width: 33.33%; }
  .col-xl-5 { width: 41.66%; }
  .col-xl-6 { width: 50%; }
  .col-xl-7 { width: 58.33%; }
  .col-xl-8 { width: 66.66%; }
  .col-xl-9 { width: 75%; }
  .col-xl-10 { width: 83.33%; }
  .col-xl-11 { width: 91.66%; }
  .col-xl-12 { width: 100%; }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===== Responsive Helpers ===== */
.hidden-xs { display: none; }
@media (min-width: 576px) { .hidden-xs { display: block; } .hidden-sm { display: none; } }
@media (min-width: 768px) { .hidden-sm { display: block; } .hidden-md { display: none; } }
@media (min-width: 992px) { .hidden-md { display: block; } .hidden-lg { display: none; } }
@media (min-width: 1200px) { .hidden-lg { display: block; } .hidden-xl { display: none; } }

/* ===== Mobile-First Adjustments ===== */
@media (max-width: 575.98px) {
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Stack elements that might need it on mobile */
  .stack-on-mobile {
    flex-direction: column;
  }
  
  /* Adjust font sizes for better mobile readability */
  p, li {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  [class*="col-"] {
    float: none;
    width: 100%;
  }
  
  .hidden-print {
    display: none !important;
  }
}