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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0 !important;
  line-height: 1.6;
}

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

/* Top Bar */
.top-bar {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav {
  display: flex;
  gap: 20px;
}

.top-nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.top-nav-link:hover {
  color: #ccc;
}

.top-social {
  display: flex;
  gap: 12px;
}

.top-social a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

.top-social a:hover {
  opacity: 0.7;
}

/* Brand Section */
.brand-section {
  background: #c41e3a;
  color: #fff;
  padding: 20px 0;
}

.brand-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-content {
  flex: 1;
}

.since-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.site-logo {
  font-size: 48px;
  font-weight: 900;
  margin: 0;
  color: #fff;
  text-decoration: none;
}

.site-tagline {
  font-style: italic;
  font-size: 16px;
  margin: 5px 0 0 0;
  opacity: 0.9;
}

.ad-space {
  flex: 0 0 380px;
  margin-left: 40px;
}

.rotating-ads {
  background: #fff;
  color: #333;
  padding: 30px 25px;
  border-radius: 8px;
  min-height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-ad {
  opacity: 0;
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.rotating-ad.active {
  opacity: 1;
}

.ad-content {
  text-align: center;
}

.ad-headline {
  font-size: 14px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 3px;
  cursor: pointer;
}

.ad-description {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 4px;
}

.ad-url {
  font-size: 11px;
  color: #137333;
  font-weight: 600;
}

/* Main Navigation */
.main-nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-link {
  color: #c41e3a;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 15px 16px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  background: #f8f8f8;
  border-bottom-color: #c41e3a;
}

.nav-link.active {
  background: #c41e3a;
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-btn {
  background: #c41e3a;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #a01729;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #c41e3a;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #c41e3a;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-menu-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-logo {
  font-size: 24px;
  font-weight: 900;
  color: #c41e3a;
  text-decoration: none;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-container {
  margin-bottom: 0;
}

.mobile-search-box {
  display: flex;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  outline: none;
}

.mobile-search-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  color: #666;
  cursor: pointer;
}

.mobile-menu-content {
  padding: 0;
}

.mobile-nav-section {
  padding: 0 20px;
  margin-bottom: 32px;
}

.mobile-nav-item {
  margin-bottom: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
}

.mobile-nav-link:hover {
  background: rgba(196, 30, 58, 0.08);
  color: #c41e3a;
}

.mobile-nav-link.active {
  background: rgba(196, 30, 58, 0.12);
  color: #c41e3a;
  font-weight: 600;
}

.nav-icon {
  font-size: 20px;
  margin-right: 12px;
}

.nav-text {
  flex: 1;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  color: #c41e3a;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 15px 16px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-trigger:hover {
  background: #f8f8f8;
  border-bottom-color: #c41e3a;
}

.dropdown-arrow {
  font-size: 8px;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #c41e3a;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px 0;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: #f8f8f8;
  color: #c41e3a;
  border-left-color: #c41e3a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .top-nav-link {
    font-size: 11px;
  }
  
  .brand-section .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .ad-space {
    flex: none;
    margin-left: 0;
    width: 100%;
  }
  
  .site-logo {
    font-size: 36px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 10px;
  }
  
  .top-nav {
    gap: 8px;
  }
  
  .site-logo {
    font-size: 28px;
  }
  
  .site-tagline {
    font-size: 14px;
  }
  
  .rotating-ads {
    padding: 20px 15px;
    min-height: 100px;
  }
  
  .ad-headline {
    font-size: 12px;
  }
  
  .ad-description {
    font-size: 11px;
  }
}
