/* Play4Movie.it - Modern Minimal Design */

:root {
  --primary: #e50914;
  --primary-dark: #b20710;
  --dark: #141414;
  --dark-light: #1f1f1f;
  --gray: #808080;
  --gray-light: #b3b3b3;
  --white: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

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

/* Header */
header {
  background: var(--dark-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.logo-text span {
  color: var(--primary);
}

/* Navigation */
nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: var(--gray-light);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid #333;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  color: var(--gray-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
main {
  padding: 40px 0;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.article-card {
  background: var(--dark-light);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-content {
  padding: 20px;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--white);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card .meta {
  color: var(--gray);
  font-size: 0.85rem;
}

.article-card .category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Single Article */
article.single {
  max-width: 800px;
  margin: 0 auto;
}

article.single h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

article.single .meta {
  color: var(--gray);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

article.single .featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

article.single .content {
  font-size: 1.05rem;
}

article.single .content h2 {
  font-size: 1.5rem;
  margin: 35px 0 15px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

article.single .content h3 {
  font-size: 1.2rem;
  margin: 25px 0 10px;
}

article.single .content p {
  margin-bottom: 20px;
  color: var(--gray-light);
}

article.single .content ul,
article.single .content ol {
  margin: 20px 0;
  padding-left: 25px;
  color: var(--gray-light);
}

article.single .content li {
  margin-bottom: 8px;
}

article.single .content strong {
  color: var(--white);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: var(--dark-light);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

/* FAQ Section */
.faq {
  margin: 40px 0;
  background: var(--dark-light);
  border-radius: 8px;
  padding: 30px;
}

.faq h2 {
  margin-bottom: 25px;
  border-bottom: none !important;
}

.faq-item {
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-question::before {
  content: "Q: ";
  color: var(--primary);
}

.faq-answer {
  color: var(--gray-light);
  padding-left: 20px;
}

.faq-answer::before {
  content: "A: ";
  color: var(--primary);
  font-weight: 600;
}

/* Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--dark-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.sidebar-widget h4 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  background: var(--dark-light);
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #333;
}

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

.footer-col h4 {
  margin-bottom: 15px;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--gray);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gray);
}

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

.breadcrumb span {
  margin: 0 8px;
}

/* Category Badge Colors */
.category.sanremo { background: #9b59b6; }
.category.tv { background: #3498db; }
.category.film { background: #e67e22; }
.category.gossip { background: #e91e63; }
.category.classifica { background: #27ae60; }

/* Responsive */
@media (max-width: 968px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  article.single h1 {
    font-size: 1.6rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
