@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}
body{
  background: linear-gradient(135deg, #081a2f 0%, #19342b 50%, #4c3f0a 100%);
}

/* NavBar Styles */
header{
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 75%;
  margin: 0 auto;
  direction: rtl;
  position: relative;
}

header .logo-grp{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
header .logo-grp img{
  width: 100px;
}
.search-container{
  width: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
}
.search-container .group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  width: 90%;
  position: relative;
}
.search-container .input {
  width: 100%;
  height: 35px;
  line-height: 28px;
  padding: 0 1rem;
  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 20px;
  outline: none;
  background-color: #ffc500;
  color: #000;
  transition: 0.3s ease;
}

.search-container .input::placeholder {
  color: #000;
}

.search-container .input:focus,
.search-container input:hover {
  outline: none;
  background-color: #ffc500;
  box-shadow: 0 0 0 4px rgb(0 48 73 / 10%);
}

.search-container .icon {
  position: absolute;
  left: 1rem;
  fill: #000;
  width: 1rem;
  height: 1rem;
}
.search-container .search-exit{
  color: #fff;
  font-size: 23px;
  display: none;
}
.search-close{
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: #303030;
}
.search-close:hover{
  background-color: #696969;
}

 .profile-link-container{
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  display: none;
  cursor: pointer;
  background-color: #303030;
 }
 .profile-link-container:hover{
  background-color: #696969;
 }
.search-open{
  display: none;
 }
 .search-open i {
  color: #fff;
  font-size: 23px;
 }
/* NavBar Styles End*/



/* Home page Styles */
.grid-container{
  width: 75%;
  margin: 0 auto;
  margin-top: 40px;
}
.grid-container .section-title{
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.grid-container .section-title h3{
  color: #f3f3f3;
  border-bottom: solid 2px #ffc500;
  font-size: 18px;
}
.grid-container .section-title a{
  text-decoration: none;
  border: solid 1px #fff ;
  border-radius: 10px;
  padding: 3px 20px;
  color: #f3f3f3;
  transition: 0.3s ease-in-out;
  font-size: 16px;
}
.grid-container .section-title a:hover{
  background-color: #ffc500;
  color: #000;
}

.grid-container .section-posts{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
  direction: rtl;
}
.grid-container .section-posts .single-post{
  border-radius: 10px;
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.grid-container .section-posts .single-post img{
  width: 100%;
  height: 100%;
}
.grid-container .section-posts .single-post .post-player{
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.425);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
  display: none;
}
.grid-container .section-posts .single-post .post-player i{
  font-size: 50px;
  color: #fff;
}
/* Home page Styles end */


/* video css */
.video-container{
  width: 75%;
  margin: 0 auto;
  direction: rtl;
  margin-bottom: 80px;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
  background: #000;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container h1{
  font-size: 18px;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 30px;
}

.video-data{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.video-data .video-views{
  background-color: rgb(48, 48, 48);
  border-radius: 10px;
  width: fit-content;
  padding: 5px 12px;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.video-data .video-reaction{
  background-color: rgb(48, 48, 48);
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.like{
  border-right: 1px solid #4d4d4d;
}
.like, .dislike{
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: ease-in-out 0.1s;
}
.like.active i, .dislike.active i {
  color: #ffc500!important;
}
.video-reaction .like:hover,.dislike:hover{
  background-color: rgb(90, 90, 90);
  cursor: pointer;
}

.video-desc{
  border-radius: 15px;
  overflow: hidden;
  background-color: rgb(48, 48, 48);
  padding: 5px 12px;
}
.video-desc p{
  font-size: 16px;
  color: #fff;
}
.video-desc a{
  text-decoration: none;
  font-size: 16px;
  color: #ffc500;
}
.vid-desc { max-width: 100%; line-height: 1.5; }
.vid-desc .desc-toggle {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  font-size: 0.95em;
  user-select: none;
  color: #ffc500; /* match text color; change if you want a color */
}
.vid-desc .desc-toggle:hover,
.vid-desc .desc-toggle:focus {
  opacity: 0.85;
  outline: none;
}

.adv-container{
  width: 75%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* video css end */



 /* Comments css */
 .comments-container {
  background-color: rgb(48, 48, 48);
  direction: rtl;
  border-radius: 5px;
  padding: 5px 12px;

  margin: 0 auto;
  width: 75%;
  margin-bottom: 80px;
}

.comments-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid #797979;
  padding-bottom: 10px;
}


.comment-form {
  margin-bottom: 30px;
}

.user-info {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.user-info input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: rgb(236, 236, 236);
  outline: none;
}

.user-comment textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 100px;
  margin-bottom: 10px;
  font-size: 14px;
  resize: vertical;
  background-color: rgb(236, 236, 236);
  outline: none;
}

.user-submit button {
  background-color: #ffc500;
  color: black;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.user-submit button:hover {
  background-color: #bd9100;
}


.comments-list {
  margin-top: 20px;
}

.comment {
  border-bottom: 1px solid #797979;
  padding: 15px 0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-user {
  font-weight: bold;
  color: #ffc500;
  display: flex;
  align-items: center;
}

.admin-badge {
  margin-right: 5px;
  color: #0d6efd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-date {
  color: #fff;
  font-size: 12px;
}

.comment-text {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #fff;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.reply-button, 
.view-replies-button, 
.load-more-button {
  background-color: transparent;
  border: 1px solid #ffc500;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.reply-button:hover, 
.view-replies-button:hover, 
.load-more-button:hover {
  background-color: #bd9100;
  color: white;
}

.load-more-button {
  display: block;
  margin: 20px auto 0;
  padding: 8px 15px;
  font-size: 14px;
}


.reply-form-container {
  margin-top: 10px;
  display: none;
  padding: 10px;
  background-color: #3f3f3f;
  border-radius: 4px;
}

.replies-container {
  margin-top: 10px;
  padding-right: 20px;
  border-right: 2px solid #797979;
  display: none;
}

.reply {
  padding: 10px 0;
  border-bottom: 1px dashed #797979;
}

.reply:last-child {
  border-bottom: none;
}

.alert {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

.alert-success {
  background-color: #d4edda;
  color: #61dd7e;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.loading {
  text-align: center;
  padding: 10px;
  display: none;
  color: #fff;
}

.loading:after {
  content: ".";
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60% { content: "..."; }
  80%, 100% { content: ""; }
}
/* comments css end */


/* 404 css */
.page-not-found{
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 404 css end */

/* Pagination css */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.pagination a,
.pagination span.dots {
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #ffc500;
  color: #ffc500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #ffc500;
  color: white;
}

.pagination a.active {
  background-color: #ffc500;
  color: white;
  pointer-events: none;
  font-weight: bold;
}

.pagination .prev,
.pagination .next {
  font-weight: bold;
}

.pagination span.dots {
  border: none;
  color: #666;
  padding: 10px 12px;
}
/* Pagination Css End*/


/* Footer Styles */
.footer{
  background-color: rgb(20 20 20);
}
.footer-notice{
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 10px;
}
.footer-notice img{
  width: 130px;
}
.footer-notice p{
  font-size: 16px;
  color: #fff;
  text-align: center;
  width: 75%;
}
.footer-links{
  padding: 20px 10px;
  direction: rtl;
}
.footer-links ul{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-links ul li{
  list-style: none;
}
.footer-links ul li a{
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  color: #ffc500;
}
.footer-links ul li a:hover{
  border-bottom: solid 2px #ffc500;
}
.footer-copyright{
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background-color: rgb(30 30 30);
}
.footer-copyright p{
  color: #e2e2e2;
  font-size: 16px;
}
/* Footer Styles end */


/* Single pages css */
.single-page{
  border-radius: 15px;
  overflow: hidden;
  background-color: rgb(48, 48, 48);
  padding: 5px 12px;
  margin-top: 40px;
  direction: rtl;
  color: #fff;
}
.single-page p{
  color: #fff;
  font-size: 16px;
}
.single-page ul{
  margin-bottom: 30px;
}
/* Single pages css end*/


/* Contact us css */
#contact-form{
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}
#contact-form input{
  border: 1px solid #5b5b5b;
  background: #3f3f3f;
  outline: none;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  width: 100%;
}
#contact-form input::placeholder {
  color: #e7e7e7; 
}
#contact-form textarea{
  border: 1px solid #5b5b5b;
  background: #3f3f3f;
  outline: none;
  padding: 20px;
  border-radius: 8px;
  height: 250px;
  color: #fff;
  font-size: 14px;
  width: 100%;
}
#contact-form textarea::placeholder {
  color: #e7e7e7; 
}
#contact-form button{
  border: none;
  outline: none;
  padding: 14px 29px;
  color: #333;
  font-size: 16px;
  transition: ease-in 0.2s;
  background-color: #ffc500;
  border: none;
  border-radius: 8px;
}
#contact-form button:hover{
  cursor: pointer;
  background-color: #c49600;
}
.contact-msg{
  width: 100%;
  height: 60px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background-color: #2f795e;
  margin-bottom: 15px;
}
.contact-msg p{
  color: #fff;
  font-size: 16px;
}
/* Contact us css end */


/* Responsive css */
@media (max-width: 991px) {
  header{
    width: 95%;
  }
  .profile-link-container{
    display: flex;
  }
  .search-close{
    display: flex;
  }
 .search-open {
    display: flex;
  }
  .search-container{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    display: none;
    justify-content: space-between;
    padding: 0 10px;
    gap: 10px;
    background-color: #000;
  }
  .search-container .search-exit{
    display: block;
  }
  .grid-container{
    width: 95%;
  }
  .grid-container .section-posts{
    grid-template-columns: repeat(1, 1fr);
  }
  .video-container{
    width: 95%;
  }
  .comments-container {
    width: 95%;
  }
  .adv-container{
    width: 95%;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-container .section-posts{
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Responsive css end */













