/* ============================================
   TMZNEWS - Custom Theme
   ============================================ */
:root {
    --site-primary: #39ff14;
    --site-secondary: #000000;
    --site-bg: #111111;
    --site-text: #ffffff;
    --site-accent: #32cd32;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}
body {
    font-family: "Lucida Console", Monaco, monospace;
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Arial Black", sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }
/* HEADER */
.site-header {
    background-color: var(--site-primary);
    color: var(--site-white);
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid var(--site-secondary);
}
.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.logo-section img { height: 70px; }
.main-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--site-white); font-weight: bold; text-transform: uppercase; padding: 5px 10px; }
.main-nav a:hover { color: var(--site-secondary); }
/* LAYOUTS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 5px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
/* FOOTER */
.site-footer {
    background-color: var(--site-accent);
    color: var(--site-white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}
.footer-logo img { height: 50px; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--site-white); }
/* EXTRA CSS */

      .hero-card.split { position: relative; display: block; height: 500px; overflow: hidden; border: 2px solid #39ff14; }
      .hero-card.split img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2); }
      .hero-content { position: absolute; bottom: 20px; left: 20px; background: #39ff14; color: #000; padding: 10px; transform: rotate(-2deg); }
      .hero-content h2 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }
      .news-card { display: flex; flex-direction: column; position: relative; height: 250px; overflow: hidden; border: 1px solid #39ff14; }
      .news-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
      .news-card:hover img { opacity: 1; }
      .news-content { position: absolute; bottom: 0; background: rgba(0,0,0,0.8); width: 100%; padding: 10px; }
      .news-title { font-size: 0.9rem; color: #39ff14; margin: 0; }
    
@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

/* --- HERO GRID FIXES --- */

      #latest-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .hero-card.split { position: relative; display: block; height: 450px; overflow: hidden; border: 2px solid #39ff14; border-radius: 8px; }
      .hero-card.split img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2); }
      .hero-content { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(57,255,20,0.9); color: #000; padding: 15px; transform: skewX(-5deg); }
      @media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; } }
    

/* --- PRELOADER --- */
#site-preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--site-bg); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease;
}
#site-preloader.hidden { opacity: 0; pointer-events: none; }

.loader {
    width: 64px; height: 64px; position: relative;
    background-image: linear-gradient(var(--site-secondary) 16px, transparent 0), linear-gradient(var(--site-primary) 16px, transparent 0), linear-gradient(var(--site-primary) 16px, transparent 0), linear-gradient(var(--site-secondary) 16px, transparent 0);
    background-repeat: no-repeat; background-size: 16px 16px; background-position: left top, left bottom, right top, right bottom;
    animation: rotate 1s linear infinite;
  }
  @keyframes rotate { 0% { width: 64px; height: 64px; transform: rotate(0deg) } 50% { width: 30px; height: 30px; transform: rotate(180deg) } 100% { width: 64px; height: 64px; transform: rotate(360deg) } }
