/* ============================================
   QALINKACAYAARAHA.COM - SPORTS NEWS WEBSITE
   Mobile-First, Performance-Optimized CSS
   ============================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #0066cc;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
  background-color: #f0f5ff;
  padding: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: #fff;
}

table th {
  background-color: #0066cc;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  background-color: #fff;
  border-bottom: 2px solid #0066cc;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066cc;
}

.logo a {
  color: #0066cc;
}

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

nav a:hover {
  border-bottom-color: #0066cc;
  color: #0066cc;
}

/* Main Content */
main {
  background-color: #fff;
  padding: 2rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Article/Page Content */
article {
  line-height: 1.8;
}

article p {
  margin-bottom: 1.5rem;
}

article img {
  margin: 2rem 0;
}

/* Sidebar & Related Links */
.sidebar {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  margin-left: 0;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  display: block;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.5rem;
  transition: border-color 0.2s ease;
}

.sidebar a:hover {
  border-left-color: #0066cc;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #0066cc;
}

.breadcrumb span {
  color: #999;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

footer h4 {
  color: #fff;
  margin-top: 0;
}

footer a {
  color: #0066cc;
}

footer a:hover {
  color: #66b3ff;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}

/* Buttons & CTAs */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.btn:hover {
  background-color: #0052a3;
  text-decoration: none;
}

.btn-secondary {
  background-color: #666;
}

.btn-secondary:hover {
  background-color: #555;
}

/* Cards & Sections */
.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 0;
}

/* Grid Layout for Content */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* FAQ Section */
.faq {
  margin: 2rem 0;
}

.faq-item {
  background-color: #f9f9f9;
  border-left: 4px solid #0066cc;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.faq-question {
  font-weight: 600;
  color: #0066cc;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #555;
  line-height: 1.7;
}

/* Internal Links Section */
.related-links {
  background-color: #f0f5ff;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.related-links h3 {
  margin-top: 0;
  color: #0066cc;
}

.related-links ul {
  list-style: none;
  margin-left: 0;
}

.related-links li {
  margin-bottom: 0.75rem;
}

.related-links a {
  font-weight: 500;
}

/* Contact Form */
form {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

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

  .footer-bottom {
    text-align: center;
  }

  footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Print Styles */
@media print {
  header, footer, nav {
    display: none;
  }

  body {
    background-color: white;
  }

  a {
    color: #0066cc;
  }
}
