/* ============================================================ */
/* Main.css - Branding & Core Styles */
/* ============================================================ */

:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --border-radius: 4px;
  --transition-speed: 0.3s;
}

/* ============================================================ */
/* Body & Base Styles */
/* ============================================================ */

body {
  font-family: 'Inter', Arial, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* ============================================================ */
/* Links */
/* ============================================================ */

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================================ */
/* Buttons */
/* ============================================================ */

button.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  font-size: 14px;
}

button.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

button.btn-primary:active {
  transform: translateY(0);
}

button.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  font-size: 14px;
}

button.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

button.btn-secondary:active {
  transform: translateY(0);
}

/* ============================================================ */
/* Site Logo & Branding */
/* ============================================================ */

.site-logo {
  max-height: 50px;
  max-width: 200px;
  margin-right: 15px;
  object-fit: contain;
  display: block;
}

.header-branding {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

/* ============================================================ */
/* Header */
/* ============================================================ */

header.main-topbar {
  background: white;
  color: #333;
  padding: 20px;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header.main-topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
}

header.main-topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #6b7280;
}

/* Buttons in header - normal styling */
header.main-topbar .btn,
header.main-topbar button,
header.main-topbar a.btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Refresh button - green gradient */
#topbar-refresh-btn, .topbar-refresh-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: white !important;
  border: none !important;
}

#topbar-refresh-btn:hover, .topbar-refresh-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3) !important;
}

/* ============================================================ */
/* Dark Mode Support */
/* ============================================================ */

html.dark-mode body {
  background-color: #1a1a1a;
  color: #ffffff;
}

html.dark-mode a {
  color: #5a9fd4;
}

html.dark-mode a:hover {
  color: #7ab8e6;
}

html.dark-mode header.main-topbar {
  background: #1a1a1a;
  border-bottom-color: #333333;
}

html.dark-mode header.main-topbar h1 {
  color: #ffffff;
}

html.dark-mode header.main-topbar h2 {
  color: #d1d5db;
}

html.dark-mode .header-branding {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================ */
/* Light Mode Overrides */
/* ============================================================ */

html.light-mode a {
  color: var(--primary-color);
}

html.light-mode a:visited {
  color: #8b4789;
}


/* ============================================================ */
/* Responsive Design */
/* ============================================================ */

@media (max-width: 768px) {
  .header-branding {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  .site-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  header.main-topbar h1 {
    font-size: 22px;
  }

  button.btn-primary,
  button.btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ============================================================ */
/* Utility Classes for Branding */
/* ============================================================ */

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

.text-secondary {
  color: var(--secondary-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.border-primary {
  border-color: var(--primary-color);
}

.border-secondary {
  border-color: var(--secondary-color);
}

.accent-primary {
  accent-color: var(--primary-color);
}

.accent-secondary {
  accent-color: var(--secondary-color);
}
