/**
 * YouTube 2025 Child Theme - Main Stylesheet
 *
 * This stylesheet contains all the styles for the YouTube 2025 child theme.
 */

/* --------------------------------------------------------
  Table of Contents:
  1. Global Styles
  2. Header Styles
  3. Hero Section
  4. Video Card Styles
  5. Section Styles
  6. Advertisement Styles
  7. Footer Styles
  8. Utility Classes
----------------------------------------------------------- */

/* --------------------------------------------------------
  1. Global Styles
----------------------------------------------------------- */
:root {
  --primary-color: #ff0000;
  --secondary-color: #282828;
  --text-color: #333333;
  --light-text: #737373;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --light-gray: #e5e5e5;
  --medium-gray: #c4c4c4;
  --dark-gray: #606060;
  --black: #000000;
  --border-color: #e0e0e0;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --font-main: 'Roboto', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--off-white);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------
  2. Header Styles
----------------------------------------------------------- */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  max-width: 150px;
}

.tube-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.tube-icon {
  color: var(--primary-color);
  margin-right: 5px;
  font-size: 1.2rem;
}

.header-navigation {
  display: flex;
  align-items: center;
}

.main-navigation {
  margin-right: 20px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0 15px;
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

.search-container {
  position: relative;
  margin-right: 20px;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-field {
  padding: 8px 40px 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  width: 200px;
  transition: width 0.3s ease;
}

.search-field:focus {
  width: 250px;
  outline: none;
  border-color: var(--primary-color);
}

.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 0;
}

.search-submit:hover {
  color: var(--primary-color);
}

.btn-upload {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 15px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-upload:hover {
  background-color: #cc0000;
  color: var(--white);
}

/* --------------------------------------------------------
  3. Hero Section
----------------------------------------------------------- */
.hero-section {
  background: linear-gradient(to right, #1c1c1c, #323232);
  padding: 60px 0;
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  width: 50%;
  padding-right: 40px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--light-gray);
}

.hero-buttons {
  margin-top: 20px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #cc0000;
  color: var(--white);
}

.hero-video {
  width: 50%;
  perspective: 1000px;
}

.video-card-featured {
  transform: rotate3d(0, 1, 0, -10deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.video-card-featured:hover {
  transform: rotate3d(0, 1, 0, 0);
}

/* --------------------------------------------------------
  4. Video Card Styles
----------------------------------------------------------- */
.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--black);
}

.thumbnail-image,
.featured-image {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover .thumbnail-image,
.video-thumbnail:hover .featured-image {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--overlay-color);
  color: var(--white);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  background-color: rgba(255, 0, 0, 0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-button {
  opacity: 1;
}

.video-details {
  padding: 15px 0;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: var(--light-text);
  font-size: 0.85rem;
}

.video-views,
.video-date {
  display: flex;
  align-items: center;
}

.video-card {
  margin-bottom: 25px;
}

/* --------------------------------------------------------
  5. Section Styles
----------------------------------------------------------- */
section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

.section-controls {
  display: flex;
  align-items: center;
}

.control-prev,
.control-next {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.control-prev:hover,
.control-next:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.control-item {
  background: var(--light-gray);
  border: none;
  color: var(--text-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.control-item.active,
.control-item:hover {
  background: var(--primary-color);
  color: var(--white);
}

.view-all {
  margin-left: 15px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: #cc0000;
}

/* Trending Videos Section */
.trending-videos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px;
}

/* Latest Videos Section */
.latest-videos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px;
}

/* Popular Videos Section */
.popular-videos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px;
}

/* Latest News Section */
.latest-news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 20px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-thumbnail {
  height: 200px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-thumbnail:hover .news-image {
  transform: scale(1.05);
}

.news-details {
  padding: 20px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.news-category a {
  color: var(--primary-color);
  font-weight: 600;
}

.news-date {
  color: var(--light-text);
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-footer-meta {
  display: flex;
  justify-content: space-between;
  color: var(--light-text);
  font-size: 0.85rem;
  border-top: 1px solid var(--light-gray);
  padding-top: 15px;
}

.news-author,
.news-comments {
  display: flex;
  align-items: center;
}

.news-author svg,
.news-comments svg {
  margin-right: 5px;
}

/* Movies Section */
.movies-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.movie-thumbnail {
  position: relative;
}

.movie-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-thumbnail:hover .movie-image {
  transform: scale(1.05);
}

.movie-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
}

.movie-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.movie-title a {
  color: var(--white);
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.movie-button {
  margin-top: 10px;
}

.watch-now {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.watch-now:hover {
  background-color: #cc0000;
  color: var(--white);
}

/* --------------------------------------------------------
  6. Advertisement Styles
----------------------------------------------------------- */
.advertisement-section {
  padding: 20px 0;
}

.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ad-wrapper {
  background: var(--light-gray);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.ad-content {
  text-align: center;
  color: var(--dark-gray);
}

.ad-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.ad-subtext {
  font-size: 0.9rem;
  margin: 5px 0 0;
}

/* --------------------------------------------------------
  7. Footer Styles
----------------------------------------------------------- */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--light-gray);
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--light-gray);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.latest-posts li {
  margin-bottom: 15px;
}

.post-date {
  display: block;
  font-size: 0.8rem;
  color: var(--medium-gray);
  margin-top: 5px;
}

.site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* --------------------------------------------------------
  8. Utility Classes
----------------------------------------------------------- */
.hidden {
  display: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  background-color: var(--white);
  color: var(--text-color);
  font-weight: 600;
}