/* CSS Variables for theming */
:root {
    --primary-color: #6200ea;
    --secondary-color: #03dac6;
    --bg-color: #f0f2f5;
    --header-bg: linear-gradient(90deg, #6200ea, #03dac6);
    --text-color: #ffffff;
    --card-bg: #ffffff;
    --header-height: 80px;
  }
  
  /* Global Reset */
  * {
    box-sizing: border-box;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
  }
  
  /* Enhanced Full-Width Sticky Header */
  header {
    width: 100vw;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  header .logo {
    height: 50px;
    width: 50px;
    flex-shrink: 0;
  }
  
  header .title {
    flex-grow: 1;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
  }
  
  header .placeholder {
    width: 50px;
  }
  
  /* Main Content Container */
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Sticky Navigation styles */
  nav {
    position: sticky;
    top: var(--header-height);
    background-color: var(--card-bg);
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    z-index: 999;
  }
  
  .tabs {
    display: flex;
    justify-content: space-around;
  }
  
  .tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    background: none;
    border: none;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
  }
  
  .tab:hover {
    background-color: #f2f2f2;
  }
  
  .tab:focus {
    box-shadow: 0 0 0 3px rgba(3,218,198,0.5);
  }
  
  .tab.active {
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Card styles */
  .card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    padding: 20px;
    transition: transform 0.2s;
  }
  
  .card:hover,
  .card:focus-within {
    transform: translateY(-3px);
  }
  
  .card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
  }
  
  .card p {
    margin: 0;
    font-size: 1rem;
  }
  
  /* Video item specific styling */
  .video-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .video-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
  }
  
  /* Floating Action Button (FAB) */
  .fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1001;
  }
  
  .fab:hover {
    transform: scale(1.05);
  }
  
  .fab-icon {
    font-size: 1.5rem;
  }
  
  /* Donation Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    z-index: 1002;
  }
  
  .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    text-align: center;
    animation: slideDown 0.3s;
  }
  
  .modal-content h2 {
    margin-top: 0;
  }
  
  .modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  
  .modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  #donateConfirm {
    background-color: var(--primary-color);
    color: #fff;
  }
  
  #donateCancel {
    background-color: #ccc;
    color: #333;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    header {
      height: 60px;
    }
    header .title {
      font-size: clamp(1.2rem, 4vw, 2rem);
    }
    .video-item {
      flex-direction: column;
      align-items: flex-start;
    }
    /* Full-width image for mobile, like YouTube */
    .video-item img {
      width: 100%;
      height: auto;
      margin-top: 15px;
      border-radius: 0;
    }
  }
  
/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--header-bg); /* Same gradient as header */
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif; /* Using Cairo font */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1001;
  }
  
  .fab-text {
    font-weight: bold; /* Bold text like header */
    font-family: 'Cairo', sans-serif; /* Using Cairo font */
  }
  