:root{
    --bg: bisque;
    --card: #ffffff;
    --accent: #f59e0b; /* amber/orange */
    --muted: #555;
    --gap: 1rem;
    --max-width: 1100px;
    --container-pad: 1rem;
    --text-color: #111;
}

/* Dark theme */
html[data-theme="dark"]{
    --bg: #1a1a1a !important;
    --card: #2d2d2d !important;
    --accent: #f59e0b !important;
    --muted: #aaa !important;
    --text-color: #e0e0e0 !important;
}

html[data-theme="dark"] body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .card {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Base */
html,body{height:100%;}
body{
    margin:0;
    background-color: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px; /* base for rem */
    color: var(--text-color);
}

.container{
    width:90%;
    max-width:var(--max-width);
    margin:0 auto;
    padding: 0 var(--container-pad);
}

/* Header: flex layout with brand left and nav right */
header.site-header{
    display:flex;
    align-items:center; /* vertical alignment */
    justify-content:space-between; /* left/right */
    gap: var(--gap);
    padding: 1rem 0;
    background: var(--card);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    color: gold;
}
.site-brand h1{ margin:0; font-size:1.25rem; }
.site-brand p{ margin:0; font-size:0.875rem; color:var(--muted); }

/* Keep the brand title and subtitle on a single line when space allows */
.site-brand > div{ display:flex; align-items:center; gap:0.5rem; }

/* Navigation aligned to right inside header */
nav.site-nav{ display:flex; align-items:center; gap: 0.75rem; }
nav.site-nav .nav-list{ display:flex; gap:0.5rem; margin:0; padding:0; list-style:none; }
nav.site-nav a{
    display:inline-block;
    padding: 0.5rem 0.75rem;
    border-radius:0.5rem;
    text-decoration:none;
    color: #111;
    background: transparent;
    border: 2px solid transparent;
    font-weight:600;
}
nav.site-nav a.btn{
    background: white;
    border-color: #000;
}
nav.site-nav a:hover{ background: rgba(0,0,0,0.04); }

/* Main content area with 3-column grid */
main.site-main{ padding: 1.25rem 0 2rem; }
.grid{
    display:grid;
    grid-template-columns: 1fr 280px 200px; /* article, sidebar, extra */
    gap: 1.25rem;
    align-items:start;
}

.card{ background:var(--card); padding:1rem; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.04); }

/* Float image with text wrap */
.img-float-left{ float:left; width:35%; max-width:220px; margin:0 1rem 1rem 0; border-radius:8px; }
.img-float-right{ float:right; width:35%; max-width:220px; margin:0 0 1rem 1rem; border-radius:8px; }
.clearfix::after{ content:""; display:table; clear:both; }

/* Sidebar and extra columns */
.sidebar{ font-size:0.95rem; }
.extra{ font-size:0.9rem; color:var(--muted); }

/* Footer */
footer.site-footer{
    margin-top:2rem;
    background:#f1f1f1;
    padding:1rem 0;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* Responsive adjustments */
@media (max-width: 1024px){
    .grid{ grid-template-columns: 1fr 240px; }
}

@media (max-width: 768px){
    /* Stack grid to single column */
    .grid{ grid-template-columns: 1fr; }
    /* Nav becomes simpler, center it */
    nav.site-nav{ justify-content:center; }
    .img-float-left, .img-float-right{ float:none; width:100%; max-width:100%; margin:0 0 1rem 0; }
    .site-brand h1{ font-size:1.1rem; }
  /* On narrow screens, stack brand title and subtitle */
  .site-brand > div{ flex-direction:column; align-items:flex-start; }
}

/* Small niceties */
h1.page-title{ font-size:1.5rem; margin:0 0 0.5rem 0; }
p{ margin:0 0 1rem 0; line-height:1.5; }

/* Part 1: Social Media Buttons in Header */
.social-buttons-header{
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.social-btn{
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 250ms ease;
  color: #fff;
}
.social-btn.twitter{
  background: #1da1f2;
}
.social-btn.twitter:hover{
  background: #1a8cd8;
}
.social-btn.instagram{
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-btn.instagram:hover{
  opacity: 0.85;
}
.social-btn.youtube{
  background: #ff0000;
}
.social-btn.youtube:hover{
  background: #cc0000;
}

/* Theme Toggle Button */
.theme-toggle{
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 250ms ease;
}
.theme-toggle:hover{
  opacity: 0.85;
  transform: scale(1.05);
}

/* Theme toggle button styles */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:6px;
  background:#222;
  color:#fff;
  border: none;
  cursor:pointer;
  font-size:1.05rem;
}
.theme-toggle:hover{ opacity:0.9; }

/* Dark theme overrides */
body.dark-theme{
  background:#000;
  color:#e6e6e6;
}
body.dark-theme header.site-header{ background:#0b0b0b; color:#f5f5f5; }
body.dark-theme .card{ background:#0f0f0f; color:#e6e6e6; }
body.dark-theme .site-brand p{ color:#bbb; }
body.dark-theme nav.site-nav a{ color:#e6e6e6; }
body.dark-theme nav.site-nav a.btn{ background:#111; border-color:#333; color:#fff; }
body.dark-theme footer.site-footer{ background:#080808; color:#ddd; }


/* Part 4: Social Sharing Block */
.social-sharing-block{
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.social-sharing-block h4{
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}
.share-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share-btn{
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 200ms ease;
  background: #fff;
  color: #111;
}
.share-btn:hover{
  background: #f0f0f0;
  border-color: #999;
}
.share-btn.twitter{
  background: #1da1f2;
  color: #fff;
  border-color: #1da1f2;
}
.share-btn.twitter:hover{
  background: #1a8cd8;
  border-color: #1a8cd8;
}
.share-btn.facebook{
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.share-btn.facebook:hover{
  background: #166fe5;
  border-color: #166fe5;
}
.share-btn.linkedin{
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}
.share-btn.linkedin:hover{
  background: #095195;
  border-color: #095195;
}
.share-btn.copy{
  background: var(--muted);
  color: #fff;
  border-color: var(--muted);
}
.share-btn.copy:hover{
  background: #777;
  border-color: #777;
}

/* Part 2: Social Feed Block */
.social-feed-block{
  margin-top: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}
.social-feed-block h4{
  margin: 0 0 0.75rem 0;
}

/* Responsive: stack social buttons on mobile */
@media (max-width: 768px){
  .social-buttons-header{
    flex-direction: column;
    align-items: flex-start;
  }
  .share-buttons{
    flex-direction: column;
  }
  .share-btn{
    width: 100%;
    text-align: center;
  }
}



