/* Extract from study-material.html */

/* Share Popup */
.share-popup-overlay {
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.share-popup-box {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.share-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}
.close-share-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.share-platforms {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.share-platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  cursor: pointer;
}
.share-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-platform-text {
  font-size: 12px;
  color: #4b5563;
}
.share-link-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
}
.share-link-input {
  background: none;
  border: none;
  flex: 1;
  font-size: 14px;
  color: #4b5563;
  outline: none;
}
.copy-link-btn {
  background: #0080ff;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-only {
  display: block;
}

.gyd-banner-desktop{
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  .gyd-banner-desktop {
    display: block;
  }
}

.mobile-action-btn {
  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

/* Hover (desktop / pointer devices) */
@media (hover: hover) {
  .mobile-action-btn:hover {
    background-color: #f9fafb; /* gray-50 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

/* Active (mobile tap feedback) */
.mobile-action-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gyd-banner-desktop {
margin: 16px;
border-radius: 14px;
padding: 14px 18px;
background: linear-gradient(
  90deg,
  #0b4f8a 0%,
  #3c7fa3 40%,
  #8dd6da 100%
);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  Roboto, Helvetica, Arial, sans-serif;
}

.gyd-banner-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}

/* Left text */
.gyd-banner-text {
color: #ffffff;
font-size: 18px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}

/* Right buttons container */
.gyd-banner-actions {
display: flex;
gap: 10px;
}

/* Base button */
.gyd-btn, .gyd-btn-mobile {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
background: #ffffff;
border: 2px solid transparent;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
transition: all 0.2s ease;
}

.gyd-btn-mobile{
flex: 1;             
display: flex;
align-items: center;
justify-content: center;
}

.gyd-btn:hover {
transform: translateY(-1px);
}

/* Icons */
.gyd-btn .icon {
font-size: 14px;
line-height: 1;
font-weight: 600;
font-family: 'Inter';
}

/* Individual button styles */
.gyd-btn.practice {
color: #3F3F41;
border-color: #0E7DCC;
background: #C2F0FF;
font-size: 14px;
font-weight: 600;
}

.gyd-btn.quiz {
color: #3F3F41;
border-color: #389E0D;
background: #F6FFED;
font-size: 14px;
font-weight: 600;
}

.gyd-btn.summary, .gyd-btn-mobile.summary {
color: #3F3F41;
border: 1px solid #1D39C4;
background: #D6E4FF;
font-size: 14px;
font-weight: 600;
}

.gyd-btn.video, .gyd-btn-mobile.video {
color: #3F3F41;
border: 1px solid #CF1322;
background: #FFF1F0;
font-size: 14px;
font-weight: 600;
}

/* Hide by default (desktop) */
.mobile-bottom-banner {
display: none;
}

.mobile-btns{
display: none;
}

/* Mobile only */
@media (max-width: 768px) {
.mobile-bottom-banner {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px; /* margin from bottom */
  padding: 0 16px;
  z-index: 999;
}

.mobile-btns{
  display: flex;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: -30px;
}

.banner-content {
  background: linear-gradient(180deg, #0b4a8b, #8fd3d8);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-family: 'Inter', system-ui, sans-serif;
}


.banner-actions {
  display: flex;
  gap: 10px;
}

.banner-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.banner-btn.practice {
  background: #e6f4ff;
  color: #0b4a8b;
  border: 1px solid #60a5fa;
}

.banner-btn.quiz {
  background: #ecfccb;
  color: #365314;
  border: 1px solid #84cc16;
}

.banner-btn:active {
  transform: scale(0.97);
}
}

/* YouTube-like Grid Layout (Below Player) */
.yt-below-player-grid {
  display: flex;
  flex-direction: column;
  margin: 24px auto 0 auto;
  width: 90%;
  gap: 24px;
  background: transparent;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (min-width: 1024px) {
  .yt-below-player-grid {
    width: 84%;
    max-width: 1140px;
  }
}

.yt-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.yt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Youtube Metadata Block */
.yt-metadata-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yt-video-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .yt-video-title {
    font-size: 17px;
    line-height: 24px;
  }
}

.yt-video-primary-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yt-channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #1e293b;
}
.yt-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-channel-text {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.yt-channel-name {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}
.yt-channel-subs {
  font-size: 15px;
  color: #64748b;
}
@media (max-width: 768px) {
  .yt-channel-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .yt-channel-name {
    font-size: 17px;
  }
  .yt-channel-subs {
    font-size: 13px;
  }
}

.yt-metadata-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
.yt-metadata-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .yt-metadata-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .yt-metadata-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}

.yt-subscribe-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 0 16px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 12px;
  white-space: nowrap;
}
.yt-subscribe-btn:hover {
  background: #334155;
}
.yt-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.yt-action-buttons::-webkit-scrollbar {
  display: none;
}
.yt-action-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0 16px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: #0f0f0f;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .yt-action-pill {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
  .yt-action-pill svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }
  .yt-action-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .views-text {
    font-size: 12px !important;
  }
}
.yt-action-pill:hover {
  background: #e5e5e5;
}
.yt-action-pill:active {
  background: #d9d9d9;
}
.yt-action-pill svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-right: 6px;
}
.yt-description-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #0f172a;
  margin-top: 4px;
  line-height: 1.5;
}

/* Class Details Responsive Styles */
.class-details-label { font-size: 17px; font-weight: 700; color: #0f172a; }
.class-details-name { font-size: 17px; font-weight: 600; color: #0f172a; }
.class-details-badge { font-size: 14px; padding: 4px 12px; background: #f1f5f9; color: #475569; border-radius: 4px; }
.class-details-text { font-size: 15px; color: #64748b; line-height: 1.5; }
.details-separator { color: #d1d5db; font-size: 17px; }

@media (max-width: 768px) {
  .class-details-label { font-size: 15px; }
  .class-details-name { font-size: 15px; }
  .class-details-badge { font-size: 12px; padding: 3px 8px; }
  .class-details-text { font-size: 13px; }
  .details-separator { font-size: 15px; }
}


/* Sidebar Cards */
.yt-side-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: all 0.2s;
}
.yt-side-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.yt-side-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  border-left: 4px solid #0E7DCC;
  padding-left: 10px;
}
.yt-teacher-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Metadata below player */
.yt-metadata {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}
.yt-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.yt-stats-row {
  display: flex;
  gap: 24px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}
.yt-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Signup Blur Feature Styles */
.blur-content {
  filter: blur(12px) grayscale(20%);
  pointer-events: none;
  user-select: none;
  transition: filter 0.8s ease;
}

.signup-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.signup-blur-overlay.visible {
  display: flex;
  animation: fadeIn 0.5s ease;
}

/* YouTube-style Description Box */
.yt-description-container {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 12px;
  transition: background 0.2s;
}
.yt-description-container:hover {
  background: #e5e5e5;
}
.yt-description-header {
  font-size: 14px;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 2px;
  display: block;
}
.yt-description-text {
  font-size: 14px;
  color: #0f0f0f;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.yt-description-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.yt-description-toggle {
  font-size: 14px;
  font-weight: 700;
  color: #0f0f0f;
  margin-top: 4px;
  cursor: pointer;
  display: inline-block;
}

.yt-description-item {
  margin-top: 2px;
}

.yt-description-page-label {
  color: #0080ff;
  font-weight: 600;
}

.yt-description-question-header {
  margin-top: 4px;
  font-weight: 700;
  color: #0f0f0f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.overlay-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
}

.overlay-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.overlay-subtitle {
  font-size: 16px;
  margin-bottom: 28px;
  color: #fff;
  line-height: 1.5;
  font-weight: 400;
}

.signup-trigger-btn {
  background: #0081f1; /* Vibrant blue from image */
  color: white;
  padding: 16px 48px;
  border-radius: 100px; /* Pill shape as in image */
  font-size: 20px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 129, 241, 0.3);
}

.signup-trigger-btn:hover {
  background: #0b68aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 125, 204, 0.5);
}

.feature-labels-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.feature-label {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .overlay-card {
    padding: 30px 20px;
  }
  .overlay-title {
    font-size: 20px;
  }
  .signup-trigger-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  .feature-labels-container {
    display: block;
    gap: 0;
    margin-top: 5px;
  }
  .feature-label {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    display: inline;
    white-space: normal;
    opacity: 0.9;
  }
  .feature-label:not(:last-child)::after {
    content: ", ";
  }
}

@keyframes likePopupFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
