/* Hikaye TV - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

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

:root {
  --primary-color: #e63946;
  --primary-dark: #c1121f;
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-darkest: #0f3460;
  --text-light: #ffffff;
  --text-muted: #b8c5d6;
  --text-gray: #888;
  --card-bg: rgba(255, 255, 255, 0.05);
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

body.dark-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e63946;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a2e;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 150px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.lang-menu a.active {
  color: #e63946;
}

.mobile-menu {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Page Header / Banner */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 150px 20px 80px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff08" stroke-width="0.5"/></svg>')
    repeat;
  opacity: 0.5;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  color: white;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.page-header p {
  color: #b8c5d6;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff08" stroke-width="0.5"/></svg>')
    repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero h1 {
  color: white;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #e63946;
}

.hero p {
  color: #b8c5d6;
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: #e63946;
  color: #e63946;
}

/* Section Styles */
.section {
  padding: 100px 20px;
}

.section.dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section.light {
  background: #f5f5f5;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 60px;
}

.section.dark .section-title {
  color: white;
}

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

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

/* Download Cards */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.download-icon.android {
  color: #3ddc84;
}
.download-icon.ios {
  color: #007aff;
}
.download-icon.windows {
  color: #00a4ef;
}
.download-icon.tv {
  color: #e50914;
}
.download-icon.mac {
  color: #999;
}
.download-icon.tvbox {
  color: #ff6b00;
}
.download-icon.player {
  color: #e63946;
}

.download-card h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.download-card p {
  color: #888;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.coming-soon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #888;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a2e;
  transition: all 0.3s;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question i {
  color: #e63946;
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
  max-height: 500px;
}

.faq-answer p {
  color: #666;
  line-height: 1.8;
}

/* Content Section */
.content-section {
  padding: 80px 20px;
  background: #f5f5f5;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.content-container h2 {
  color: #1a1a2e;
  font-size: 1.8rem;
  margin: 30px 0 15px;
}

.content-container h2:first-child {
  margin-top: 0;
}

.content-container p {
  color: #666;
  line-height: 1.9;
  margin-bottom: 15px;
}

.content-container ul {
  color: #666;
  margin: 15px 0;
  padding-right: 25px;
}

.content-container ul li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* Contact Form */
.contact-section {
  padding: 80px 20px;
  background: #f5f5f5;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1a1a2e;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e63946;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.contact-info-item {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.contact-info-item i {
  font-size: 2.5rem;
  color: #e63946;
  margin-bottom: 15px;
}

.contact-info-item h4 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.contact-info-item p {
  color: #666;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image i {
  font-size: 4rem;
  color: #e63946;
}

.blog-card-content {
  padding: 30px;
}

.blog-card-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-card h3 {
  color: #1a1a2e;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.blog-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-card a {
  color: #e63946;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card a:hover {
  gap: 10px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-section p {
  color: #888;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #e63946;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #e63946;
  transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  font-family: 'Cairo', sans-serif;
}

.newsletter-form button {
  background: #e63946;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: #c1121f;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  color: #666;
}

.footer-bottom a {
  color: #e63946;
  text-decoration: none;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #e63946;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* LTR Support */
body.ltr {
    direction: ltr;
    text-align: left;
}

body.ltr .scroll-top {
    left: auto;
    right: 30px;
}

body.ltr .faq-question {
    flex-direction: row;
}

body.ltr .btn-secondary i,
body.ltr .btn-primary i {
    margin-left: 0;
    margin-right: 8px;
}

body.ltr .blog-card a i {
    transform: rotate(180deg);
}

body.ltr .content-container ul {
    padding-right: 0;
    padding-left: 25px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .lang-dropdown {
    width: 100%;
  }

  .lang-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .content-container {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
