/* modern-style.css - Reusable CSS for MenBG.com */

/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #ff4757;
  --accent-color: #ffa502;
  --text-color: #2d3436;
  --text-light: #636e72;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --max-width: 1400px;
}

/* ==================== */
/* Reset & Base Styles */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ==================== */
/* Container */
/* ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== */
/* Header */
/* ==================== */
.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d3436 100%);
  padding: 24px 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--bg-color);
  letter-spacing: -1px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-color);
}

.header-ad {
  flex-shrink: 0;
}

/* ==================== */
/* Navigation */
/* ==================== */
.main-nav {
  background: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 76px;
  z-index: 999;
  border-bottom: 2px solid var(--border-color);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 0;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-menu li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-menu li a:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
}

.nav-menu li a:hover::before {
  width: 80%;
}

/* ==================== */
/* Main Content */
/* ==================== */
.main-content {
  padding: 48px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ==================== */
/* Featured News */
/* ==================== */
.featured-news {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  padding: 32px;
  border-radius: var(--border-radius);
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
  color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.featured-news::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.gk_news_show_table {
  width: 100%;
  position: relative;
  z-index: 1;
}

.gk_news_show_news_header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.gk_news_show_news_header a {
  color: var(--bg-color);
  transition: var(--transition);
}

.gk_news_show_news_header a:hover {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: translateX(4px);
  display: inline-block;
}

.gk_news_show_news_text {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
}

/* ==================== */
/* Articles Grid */
/* ==================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==================== */
/* Article Cards */
/* ==================== */
.article-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-light);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-category a {
  color: var(--secondary-color);
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-title a {
  color: var(--text-color);
  transition: var(--transition);
}

.article-title a:hover {
  color: var(--secondary-color);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: auto;
  transition: var(--transition);
}

.read-more:hover {
  transform: translateX(4px);
}

/* ==================== */
/* Sidebar */
/* ==================== */
.sidebar {
  position: sticky;
  top: 140px;
}

.sidebar-widget {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
}

.banneritem-advert {
  text-align: center;
}

.banneritem-advert img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.facebook-widget {
  min-height: 317px;
}

/* ==================== */
/* Editorial Section */
/* ==================== */
.editorial-section {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 48px 0;
  margin-top: 48px;
}

.editorial-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.editorial-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.editorial-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-color);
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.editorial-links li a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ==================== */
/* Footer */
/* ==================== */
.site-footer {
  background: var(--bg-color);
  padding: 48px 0 24px;
  border-top: 3px solid var(--secondary-color);
}

.footer-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-content a {
  color: var(--secondary-color);
  font-weight: 600;
}

.license-info {
  font-size: 12px;
  color: var(--text-light);
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  line-height: 1.8;
}

.license-info img {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.footer-tracking {
  text-align: center;
  margin-top: 24px;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-column:last-child {
    grid-column: 1 / -1;
  }
  
  .article-column:last-child .article-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .site-header {
    padding: 16px 0;
  }
  
  .nav-menu {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  
  .nav-menu li a {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-news {
    padding: 24px;
  }
  
  .main-content {
    padding: 32px 0;
  }
  
  .editorial-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .article-content {
    padding: 16px;
  }
  
  .featured-news {
    padding: 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ==================== */
/* Print Styles */
/* ==================== */
@media print {
  .site-header,
  .main-nav,
  .sidebar,
  .editorial-section,
  .site-footer {
    display: none;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}
