/* Retro-style dark red website with 3D button effects - Hell Theme */
:root {
  --dark-bg: #0d0000; /* Darker background */
  --main-bg: #170000; /* Darker main background */
  --main-red: #700000; /* Darker red */
  --bright-red: #cd0000; /* Less bright red */
  --accent-orange: #cc3700; /* Darker orange */
  --text-color: #c0c0c0; /* Slightly darker text */
  --button-highlight: #ca4c35; /* Darker button highlight */
  --button-shadow: #300000; /* Darker button shadow */
  --border-color: #400000; /* Darker border */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: Verdana, Geneva, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
}

/* Large 3D Title for HDKAANFLIXCEHENNEMI */
.mega-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--bright-red);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(to bottom, #300000, #100000);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  position: relative;
  text-shadow: 
    2px 2px 0px #000,
    3px 3px 0px #600,
    4px 4px 0px #400,
    5px 5px 5px rgba(0,0,0,0.5);
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.2),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.8);
  transform: perspective(500px) rotateX(5deg);
  transform-style: preserve-3d;
}

.mega-title:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  mix-blend-mode: overlay;
  z-index: -1;
}

.mega-title:after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid var(--bright-red);
  z-index: -2;
  filter: blur(2px);
}

/* Header styles with 3D effect */
header {
  background-color: var(--main-bg);
  border-top: 3px solid var(--bright-red);
  border-bottom: 3px solid var(--bright-red);
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.site-header {
  display: flex;
  justify-content: center; /* Center the logo */
  align-items: center;
  padding: 10px 15px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--bright-red);
  text-shadow: 1px 1px 3px #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

/* Navigation bar with 3D effect */
.navbar {
  background-color: var(--main-red);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  margin: 8px 0;
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.2),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.navbar ul {
  list-style-type: none;
  display: flex;
  padding: 0;
}

.navbar li {
  padding: 0;
}

.navbar a {
  display: block;
  padding: 6px 14px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  text-shadow: 1px 1px 1px #000;
  position: relative;
  border-right: 1px solid var(--border-color);
  /* 3D Effect for buttons */
  background-color: var(--main-red);
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.2),
    inset 0px -2px 0px rgba(0, 0, 0, 0.3);
  transition: all 0.1s;
  top: 0;
}

.navbar li:last-child a {
  border-right: none;
}

.navbar a:hover, .navbar a.active {
  background-color: var(--accent-orange);
  color: #fff;
  text-shadow: 0 0 3px #500, 0 0 6px #500;
  /* Enhanced 3D effect on hover */
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.3),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5);
}

.navbar a:active {
  top: 1px;
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.1),
    inset 0px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Main content area */
.main-content {
  background-color: rgba(23, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

h1, h2, h3 {
  color: var(--bright-red);
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px #000;
}

h1 {
  font-size: 20px;
  border-bottom: 1px solid var(--main-red);
  padding-bottom: 8px;
}

h2 {
  font-size: 16px;
}

h3 {
  font-size: 14px;
}

p {
  margin-bottom: 12px;
  font-size: 12px;
}

/* 3D Button styles similar to old forum sites */
.btn-3d {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--main-red);
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.3),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0px 1px 0px var(--button-shadow),
    0px 2px 2px rgba(0, 0, 0, 0.7);
  text-shadow: 1px 1px 1px #000;
  transition: all 0.1s;
  margin: 3px;
  cursor: pointer;
  position: relative;
  top: 0;
}

.btn-3d:hover {
  background-color: var(--accent-orange);
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.3),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0px 1px 0px var(--button-shadow),
    0px 2px 3px rgba(0, 0, 0, 0.7);
}

.btn-3d:active {
  top: 1px;
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.3),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0px 0px 0px var(--button-shadow),
    0px 1px 1px rgba(0, 0, 0, 0.7);
}

/* Movie card styles */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.movie-card {
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s;
}

.movie-card:hover {
  transform: translateY(-3px);
}

.movie-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.movie-info {
  padding: 8px;
}

.movie-title {
  color: var(--bright-red);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 3px;
}

.movie-year {
  color: var(--text-color);
  font-size: 11px;
}

/* Update info styles */
.update-info {
  font-size: 11px;
  color: var(--accent-orange);
  text-align: right;
  margin-top: 8px;
  font-style: italic;
  border-top: 1px dashed var(--border-color);
  padding-top: 5px;
}

/* Video grid styles for YouTube videos display */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.video-card {
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: all 0.2s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  border-color: var(--accent-orange);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

/* Placeholder thumbnail for cases when image loading fails */
.thumbnail-placeholder {
  background-color: var(--main-bg);
  background-image: linear-gradient(45deg, var(--main-red) 25%, transparent 25%, transparent 50%, var(--main-red) 50%, var(--main-red) 75%, transparent 75%);
  background-size: 20px 20px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-placeholder::after {
  content: "Görüntü Yok";
  color: var(--text-color);
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--bright-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.8;
  transition: all 0.2s;
  border: 2px solid var(--main-red);
  box-shadow: 0 0 10px rgba(100, 0, 0, 0.7);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.video-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  color: #ffffff;
  background-color: var(--bright-red);
  border-color: #fff;
}

.video-info {
  padding: 8px;
  background: linear-gradient(to bottom, var(--main-bg), var(--dark-bg));
}

.video-title {
  color: var(--bright-red);
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-date {
  color: var(--text-color);
  font-size: 10px;
  opacity: 0.8;
}

.video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 4px;
  font-size: 10px;
  border-radius: 2px;
  font-weight: bold;
  border: 1px solid var(--border-color);
}

.video-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-color);
  opacity: 0.8;
}

.video-views {
  color: var(--accent-orange);
}

/* Horizontal scrolling video container */
.video-scroll-container {
  position: relative;
  overflow: hidden;
  margin: 10px 0;
  padding: 5px 0;
}

.video-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--main-red) var(--dark-bg);
  -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.video-row::-webkit-scrollbar {
  height: 8px;
}

.video-row::-webkit-scrollbar-track {
  background: var(--dark-bg);
  border-radius: 4px;
}

.video-row::-webkit-scrollbar-thumb {
  background-color: var(--main-red);
  border-radius: 4px;
}

.video-card-horizontal {
  flex: 0 0 auto;
  width: 220px;
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: all 0.2s;
  cursor: pointer;
}

.video-card-horizontal:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  border-color: var(--accent-orange);
}

.scroll-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  gap: 10px;
}

.scroll-btn {
  background-color: var(--main-red);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.3),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0px 1px 0px var(--button-shadow),
    0px 2px 2px rgba(0, 0, 0, 0.7);
  text-shadow: 1px 1px 1px #000;
  transition: all 0.1s;
}

.scroll-btn:hover {
  background-color: var(--accent-orange);
  color: white;
}

.scroll-btn:active {
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.1),
    inset 0px 1px 3px rgba(0, 0, 0, 0.4);
}

.youtube-link {
  margin-left: auto;
}

.video-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  color: var(--accent-orange);
  font-weight: bold;
  background-color: rgba(23, 0, 0, 0.3);
  border-radius: 3px;
}

/* Pagination controls */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination-btn {
  background-color: var(--main-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  border-radius: 2px;
  font-weight: bold;
  box-shadow: 
    inset 0px 1px 0px rgba(255, 255, 255, 0.2),
    inset 0px -1px 0px rgba(0, 0, 0, 0.5),
    0px 1px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 1px #000;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--main-red);
  color: white;
}

.pagination-btn.active {
  background-color: var(--accent-orange);
  color: white;
  box-shadow: 
    inset 0px 1px 2px rgba(0, 0, 0, 0.8),
    inset 0px -1px 0px rgba(255, 255, 255, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 10px;
  background-color: var(--main-bg);
  color: var(--text-color);
  border-top: 2px solid var(--main-red);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.8);
  font-size: 11px;
}

footer a {
  color: var(--accent-orange);
  text-decoration: none;
}

/* Form elements styling */
.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 3px;
  color: var(--bright-red);
  font-weight: bold;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 6px 8px;
  background-color: #2a0000;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  color: var(--text-color);
  font-family: Verdana, Geneva, "Lucida Sans", sans-serif;
  font-size: 11px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Panel with retro 3D style */
.panel-3d {
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  margin: 10px 0;
  position: relative;
}

.panel-header {
  background-color: var(--main-red);
  padding: 6px 10px;
  color: var(--text-color);
  font-weight: bold;
  font-size: 12px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom: 1px solid var(--border-color);
  text-shadow: 1px 1px 1px #000;
  background-image: linear-gradient(to bottom, var(--main-red), #700000);
  box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.panel-content {
  padding: 10px;
}

/* Security-related styles */
.video-error {
  padding: 10px;
  background-color: rgba(100, 0, 0, 0.3);
  color: var(--text-color);
  text-align: center;
  border: 1px solid var(--main-red);
  border-radius: 3px;
  margin: 10px 0;
}

/* Error content styles */
.error-content {
  text-align: center;
}

.error-content h1 {
  color: var(--bright-red);
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: none;
}

.error-content .btn-3d {
  margin-top: 15px;
  padding: 8px 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
  }
  
  .navbar a {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .site-header {
    flex-direction: column;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .pagination-container {
    gap: 3px;
  }
  
  .pagination-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
}