/*-------- Enhanced CSS by Khaled -------- */

/* ===== CSS VARIABLES FOR EASY CUSTOMIZATION ===== */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #ff6b6b;
  --accent-hover: #ffd93d;
  --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --black-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
  --beige-bg: #f5f1e8;
  --beige-light: #cebb986b;
  --white: #ffffff;
  --text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  --box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  --box-shadow-hover: 0 12px 25px rgba(0,0,0,0.3);
  --transition-smooth: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: var(--accent-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--accent-color);
  color: var(--white);
}

/* ===== BODY & HTML ===== */

body {
--tw-bg-opacity: 1;
// background-color: rgb(239 239 239/var(--tw-bg-opacity));
background: #ffffff;

     //background-color: #caddb8;
    // background: rgba(2,6,23,0.03);
    //  background: beige;
     background-attachment: fixed;
     overflow-x: hidden;
    font-family: Arial, sans-serif, Segoe UI', Tahoma, Geneva, Verdana;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  transition: background-color 1s ease;
  color: #333;
}

/* html {  height: 100%;  scroll-behavior: smooth;} */

/*
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
//  background-color: var(--beige-bg);
   background: #ffffff;
  background-attachment: fixed;
  transition: background-color 1s ease;
  color: #333;
}
*/

/* Responsive background colors */
/*  @media (min-width: 770px) { body {background: var(--beige-light); } } */


@media (max-width: 769px) {body {background: var(--beige-bg); } }

/* ===== HEADER SECTION ===== */
.header-inner {
  padding: 0;
  margin: 0;
overflow: hidden;
// background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
background: #2c0bcefa;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
color: #fff;
text-align: center;
}

/* Shimmer effect */
.header-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.header-inner a {
  list-style-type: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.header-inner p {
font-family: Impact, Arial, Helvetica, sans-serif;
color: white;
text-align: center;
font-size: clamp(2rem, 2vw, 3vw);
 text-shadow: var(--text-shadow);
 transition: transform 0.3s ease;
}

.header-inner p:hover {
  transform: scale(1.05);
}

.header-inner p span {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255,107,107,0.5);
}

.header-inner h1:hover {
  color: #33fc0b;
}



/* ===== ENTRY TITLE ===== */
.entry-title {
  margin: 10px auto;
  text-align: center;
  max-width: 900px;
  width: 95%;
  padding: 5px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  //background: var(--purple-gradient);
  background: #2463ff; /* color blue */
  border-radius: 15px;
  color: var(--white);
  border: none;
  box-shadow: var(--box-shadow);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-title:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.entry-title a {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.entry-title a:hover {
color: var(--accent-hover);
}

.entry-title a:visited {
 color: #e0e0e0;
}

/* ===== TITLE HEADING ===== */
h2.title {
  margin: 20px auto;
  text-align: center;
  max-width: 900px;
  width: 95%;
  padding: 5px 0px;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
 // background: var(--purple-gradient);
 background: #2463ff; /* color blue */
  border-radius: 15px;
  color: var(--white);
  border: none;
  box-shadow: var(--box-shadow);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


/* ===== NAVIGATION MENU ===== */
#menutv ul {
  border: none;
  max-width: 1024px;
  width: 98%;
  list-style-type: none;
  margin: 0px auto;
  padding: 0;
  overflow: hidden;
  background: var(--black-gradient);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

#menutv li {
  float: right;
  width: 50%;
}

#menutv li a {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  text-decoration: none;
  text-align: center;
  padding: 2px 0px;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition-smooth);
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
}

#menutv li:last-child a {
  border-right: none;
}

#menutv li a:hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: var(--white);
  transform: scale(1.05);
}

.btn.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: var(--white);
  font-weight: bold;
}

/* ===== JUMP LINK BUTTON ===== */
.jump-link {
  margin: 15px auto;
  text-align: center;
  max-width: 200px;
  width: auto;
  padding: 10px 20px;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  background: linear-gradient(135deg, #e63946 0%, #ff5964 100%);
  border-radius: 25px;
  color: var(--white);
  border: none;
  box-shadow: var(--box-shadow);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.jump-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(230,57,70,0.4);
}

.jump-link a {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===== STATISTICS COUNTER ===== */
#Stats1 {
  text-align: center;
  margin-top: -45px;
  color: transparent;
//font-size: 12px;
  direction: ltr;
}

.Stats .blind-plate {
  border-bottom: 1px solid var(--white);
  border-top: 1px solid #000;
  height: 0;
  left: 0;
  opacity: 0.65;
  position: absolute;
  top: 13px;
  width: 0;
}

.Stats .counter-wrapper {
  font-size: 20px;
  font-weight: bold;
  direction: ltr;
}

.Stats .digit {
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-weight: 600;
  margin: 1px;
  display: inline-block;
  width: 18px;
// background: var(--black-gradient);
 // background: rgba(251, 245, 245, 0.18);
//  background-position-x: 0%;
//  background-position-y: 0%;
//  background-position-x: 0%;
 // background-position-y: 0%;

 // border: none;
//border-radius: 5px;
//  border-radius: 20px;
 //color: var(--white);
//  color: #0f0f0f;
  color:#ff0c00;
//box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===== VIDEO FRAME ===== */
.fram {
  max-width: 980px; // 1024px;
  margin: 0 auto;
 padding: 0px;
}

.embed-video {
  position: relative;
  width: 98%;
  padding-bottom: 56.25%;
  height: 0;
 // margin: 1px auto;
 // border-radius: 12px;
 // overflow: hidden;
  //box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

iframe:hover {
  opacity: 1;
}

/* ===== CHANNEL GRID ===== */

.images {
  max-width: 1000px;  //1200px;
  margin: 0 auto;
  padding: 0px;
}

.kchainetv {
  width: 100%;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 5px;
  padding: 15px;
}

.kchainetv a {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: #333;
  transition: var(--transition-smooth);
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid #62625d54;
}

.kchainetv a:hover {
  background: rgba(255,255,255,0.8);
  transform: translateY(-5px);
}

.kchainetv img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
 // object-fit: cover;
//  background-color: var(--white);
 background: rgba(2,6,23,0.03);
  border: 1.5px solid #0586f7;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  cursor: pointer;
// margin-bottom: 8px;
 margin-bottom: 0px;
}

.kchainetv img:hover {
  transform: scale(1.08) rotate(1deg);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(255,107,107,0.5);
}

/* ===== POST CONTAINER ===== */
.post-outer {
//background: rgba(255,255,255,0.7);
//background: #e1e1ca63;
//  background: #ffffff;
 // backdrop-filter: blur(10px);

border-radius: 15px;
padding: 10px;
margin: 20px auto;
max-width: 1000px;  //1200px;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
// border: 1px solid rgba(255,255,255,0.3);
border: 1px solid rgba(125, 119, 119, 0.33);
}

.post {
  background: transparent;
}

.post-body {
  color: #333;
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ===== LINKS ===== */
a {
  transition: var(--transition-smooth);
  color: var(--primary-color);
}

a:hover {
  color: var(--accent-color);
}

/* ===== FOOTER SECTION ===== */
.footer {
  padding: 0.5em;
  margin: 20px 0 0 0;
// background: var(--dark-gradient);
   background: #2c0bcefa;
  color: var(--white);
  text-align: center;
 font-size: clamp(0.85rem, 2vw, 1rem);
clear: both;

 //  height: 50px;
 //  line-height: 50px;
  // box-shadow: 0 -4px 15px rgba(0,0,0,0.3);


}

.footer span a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  transition: var(--transition-smooth);
}

.footer span a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(255,217,61,0.6);
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .kchainetv {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 10px;
  }
  
  .header-inner {
    height: 50px;
  }
  
  .header-inner p {
    line-height: 50px;
   // font-size: clamp(1.5rem, 5vw, 2rem);
    font-size: clamp(2rem, 3vw, 2rem);
  }
  
  #menutv li {
    width: 50%;
  }
  
  .post-outer {
 // padding: 15px;
  padding: 0px;
 margin: 15px 10px;
  }
}

@media (max-width: 480px) {
  .kchainetv {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
    padding: 8px;
  }
  
  .kchainetv a {
    font-size: 0.7rem;
    padding: 5px;
  }
  
  .entry-title,
  h2.title {
    padding: 0px; //10px;
  }
}

@media (max-width: 1000px) {
  iframe {
    height: 95%;
  }
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-outer,
.kchainetv a {
  animation: fadeIn 0.5s ease-out;
}

/*-------- End Enhanced CSS by Khaled -------- */
