/*
Theme Name: Teen Patti SEO Theme
Theme URI: https://example.com/teen-patti-theme
Author: Your Name
Author URI: https://example.com
Description: Clean responsive WordPress theme optimized for “teen patti” long-tail keywords.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teen-patti-theme
Tags: responsive, seo, clean, blog
*/

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
}

header, footer {
  background: #222;
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

h1, h2, h3 {
  color: #222;
}

/* Main Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

article {
  margin-bottom: 30px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* Existing Mobile Styles */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 10px 0;
  }
}

/* ------------------------------------------------------------------
   Mobile Navigation Optimization Overrides
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Reduce overall header/nav padding */
  header, nav, .site-header, .main-navigation {
    padding: 10px 15px;
    height: auto;
  }

  /* Adjust header logo size */
  .site-logo img,
  header .site-logo img {
    max-height: 40px;
    width: auto;
  }

  /* Hide original flex menu */
  nav ul,
  .main-navigation ul.menu {
    display: none !important;
  }

  /* Show hamburger toggle */
  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #fff; /* ensure visibility */
  }

  /* When toggle is active, show menu */
  .menu-toggle.active + .main-navigation ul.menu,
  .menu-toggle.active + nav ul {
    display: block !important;
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  }

  /* Mobile menu list styling */
  .main-navigation ul.menu li,
  nav ul li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  .main-navigation ul.menu li a,
  nav ul li a {
    display: block;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
  }
}

/* Optional: Smooth toggle script comment
   Place this JS snippet in your theme's custom.js or footer */

 /*
document.addEventListener('DOMContentLoaded', function() {
  var btn = document.querySelector('.menu-toggle');
  var menu = document.querySelector('.main-navigation ul.menu') || document.querySelector('nav ul');
  btn.addEventListener('click', function() {
    btn.classList.toggle('active');
    if (menu.style.display === 'block') {
      menu.style.display = 'none';
    } else {
      menu.style.display = 'block';
    }
  });
});
*/
