/* ============================================
   CasinoRecensionSverige - Main Stylesheet
   ============================================ */

:root {
  --primary: #1a237e;
  --secondary: #283593;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --border-gray: #e0e0e0;
  --gold: #ffc107;
  --tips-bg: #e3f2fd;
  --tips-border: #2196f3;
  --reminder-bg: #fff8e1;
  --reminder-border: #ff9800;
  --summary-bg: #e8f5e9;
  --summary-border: #4caf50;
  --warning-bg: #fce4ec;
  --warning-border: #e53935;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--primary); margin-bottom: 0.5em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; margin-top: 1.5em; }
h3 { font-size: 1.3rem; margin-top: 1.2em; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.3em; }

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

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70px;
}

.logo a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--secondary);
  text-decoration: none;
}

.header-badge {
  background: var(--warning-border);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.5rem;
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after { content: "›"; margin-left: 8px; color: var(--medium-gray); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs li:last-child { color: var(--medium-gray); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.3em; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto 1.5em; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main { padding: 40px 0; }

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.content-full { max-width: 900px; margin: 0 auto; }

article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { padding: 8px 0; border-bottom: 1px solid var(--border-gray); }
.sidebar-widget li:last-child { border-bottom: none; }

/* ============================================
   TABLES
   ============================================ */
.table-responsive { overflow-x: auto; margin: 1.5em 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

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

tr:nth-child(even) { background: var(--light-gray); }
tr:hover { background: #e8eaf6; }

.comparison-table th:first-child { min-width: 160px; }

/* ============================================
   STAR RATINGS (CSS-only)
   ============================================ */
.star-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 1.2rem;
}

.star-rating .star { color: #ddd; }
.star-rating .star.filled { color: var(--gold); }
.star-rating .star.half {
  background: linear-gradient(90deg, var(--gold) 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
}

.rating-badge .score { font-size: 1.3rem; }

/* ============================================
   CASINO CARDS
   ============================================ */
.casino-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: center;
  border-left: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.casino-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.casino-card .rank {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.casino-card h3 { margin: 0 0 5px; }

.casino-card .bonus {
  color: var(--summary-border);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

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

.btn-gold { background: var(--gold); color: var(--dark-gray); }
.btn-gold:hover { background: #ffca28; color: var(--dark-gray); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 1.5em 0;
  border-left: 5px solid;
}

.callout h4 { margin-top: 0; }

.callout-tips {
  background: var(--tips-bg);
  border-color: var(--tips-border);
}
.callout-tips h4 { color: #1565c0; }

.callout-reminder {
  background: var(--reminder-bg);
  border-color: var(--reminder-border);
}
.callout-reminder h4 { color: #e65100; }

.callout-summary {
  background: var(--summary-bg);
  border-color: var(--summary-border);
}
.callout-summary h4 { color: #2e7d32; }

.callout-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.callout-warning h4 { color: #c62828; }

/* ============================================
   PROS & CONS
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.5em 0;
}

.pros, .cons {
  border-radius: var(--radius);
  padding: 20px;
}

.pros {
  background: var(--summary-bg);
  border: 1px solid var(--summary-border);
}

.cons {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.pros h4 { color: #2e7d32; }
.cons h4 { color: #c62828; }

.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li::before { content: "✓ "; color: #2e7d32; font-weight: 700; }
.cons li::before { content: "✗ "; color: #c62828; font-weight: 700; }

/* ============================================
   AUTHOR BIO
   ============================================ */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 20px;
  margin: 1.5em 0;
  border: 1px solid var(--border-gray);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info h4 { margin: 0 0 4px; }
.author-info .title { color: var(--medium-gray); font-size: 0.9rem; }
.author-info .bio { font-size: 0.9rem; margin: 8px 0; }

.author-links { display: flex; gap: 10px; margin-top: 5px; }
.author-links a { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

.meta-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin: 10px 0 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-gray);
}

.meta-info span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section { margin: 2em 0; }

.faq-item {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
}

.faq-question:hover { background: var(--light-gray); }

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  background: var(--white);
}

.faq-item.active .faq-answer { display: block; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--primary);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.category-card h3 { margin-bottom: 10px; }
.category-card p { color: var(--medium-gray); font-size: 0.95rem; }

/* ============================================
   RESPONSIBLE GAMBLING BOX
   ============================================ */
.responsible-gambling {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2em 0;
  text-align: center;
}

.responsible-gambling h4 { color: #c62828; font-size: 1.2rem; margin-bottom: 10px; }
.responsible-gambling p { margin-bottom: 10px; }
.responsible-gambling .helplines {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

/* ============================================
   REVIEW HEADER
   ============================================ */
.review-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.review-header h1 { color: var(--white); margin-bottom: 10px; }
.review-header .subtitle { opacity: 0.9; font-size: 1.1rem; }

.review-score {
  text-align: center;
  background: rgba(255,255,255,0.15);
  padding: 20px 30px;
  border-radius: var(--radius);
}

.review-score .number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
}

.review-score .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
  margin-top: 2em;
  padding-top: 2em;
  border-top: 2px solid var(--border-gray);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.related-card {
  background: var(--light-gray);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-gray);
  transition: border-color 0.2s;
}

.related-card:hover { border-color: var(--primary); }
.related-card h4 { font-size: 0.95rem; margin-bottom: 5px; }
.related-card p { font-size: 0.85rem; color: var(--medium-gray); margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
  margin-top: 40px;
}

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

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

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p { margin-bottom: 5px; }

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ============================================
   AUTHOR PAGE
   ============================================ */
.author-page-header {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}

.author-page-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   HUB PAGE LISTS
   ============================================ */
.hub-list { list-style: none; padding: 0; margin: 0; }
.hub-list li {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hub-list li:hover { background: var(--light-gray); }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================
   NUMBERED LIST CARDS
   ============================================ */
.numbered-list { counter-reset: item; margin: 2em 0; }
.numbered-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary);
  counter-increment: item;
  position: relative;
  padding-left: 60px;
}
.numbered-item::before {
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 2em 0;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

/* ============================================
   CONTACT FORM STYLE
   ============================================ */
.contact-form { max-width: 600px; margin: 2em 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-main);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 40px 0; }
  .hero p { font-size: 1rem; }

  .header-inner { height: 60px; }
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--primary); padding: 20px; z-index: 999; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .main-nav a { display: block; padding: 12px 16px; }
  .header-badge { display: none; }
  .mobile-menu-btn { display: block; }

  .casino-card { grid-template-columns: 1fr; text-align: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .review-header { grid-template-columns: 1fr; text-align: center; }
  .author-bio { flex-direction: column; text-align: center; }
  .author-page-header { flex-direction: column; text-align: center; }

  article { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .meta-info { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 15px; }
  .hero-badges { flex-direction: column; align-items: center; }
  .category-grid { grid-template-columns: 1fr; }
}
