/*
Theme Name: The Veena
Theme URI: https://theveena.com
Description: A vibrant WordPress theme for The Veena - Saraswathi Veena and Indian Classical Music
Version: 1.2
Author: Your Name
Author URI: https://theveena.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theveena
*/

/* ========================================
   CSS VARIABLES (COLORS)
   ======================================== */

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 25%, #fecaca 50%, #f9a8d4 75%, #c4b5fd 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   COLORFUL TEXT & BUTTONS
   ======================================== */

.gradient-text {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--red-500) 25%, var(--pink-500) 50%, var(--purple-500) 75%, var(--blue-500) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--red-500), var(--pink-500));
  background-size: 200% 200%;
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(236, 72, 153, 0.1));
  border: 2px solid var(--orange-500);
  color: var(--orange-600);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.main-nav {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--orange-400), var(--pink-400), var(--purple-400), var(--teal-400)) 1;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 1001;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--orange-600);
}

.logo-image {
  max-height: 60px;
  width: auto;
}

.logo svg {
  color: var(--orange-500);
  filter: drop-shadow(0 2px 4px rgba(251, 146, 60, 0.3));
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s;
  font-weight: 500;
}

/* Dropdown Arrow */
.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  margin-left: 0.2rem;
}

/* Hover Effects */
.nav-links > li > a:hover,
.nav-links > li.current-menu-item > a {
  color: var(--orange-600);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-400), var(--pink-400));
  transition: width 0.3s;
}

.nav-links > li > a:hover::after,
.nav-links > li.current-menu-item > a::after {
  width: 80%;
}

/* Dropdown Menu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: white;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--orange-400), var(--pink-400)) 1;
}

.nav-links > li:hover > .sub-menu,
.nav-links > li.focus > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links > li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.sub-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.3s;
}

.sub-menu li a:hover {
  color: var(--orange-600);
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.1), transparent);
  padding-left: 2rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--pink-500));
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(254, 215, 170, 0.8), rgba(254, 202, 202, 0.8));
  border-radius: 2rem;
  padding: 6rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 60px rgba(251, 146, 60, 0.3);
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.features-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.7);
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--orange-600), var(--pink-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.4s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange-400), var(--pink-400), var(--purple-400));
  border-radius: 1.5rem 1.5rem 0 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(251, 146, 60, 0.25);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--purple-600);
}

.feature-card a {
  color: var(--orange-600);
  text-decoration: none;
  font-weight: 600;
}

/* ========================================
   PAGE & POST CONTENT
   ======================================== */

.page-content,
.single-post {
  padding: 4rem 0;
}

.page-article,
.post-article {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title,
.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.page-body,
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.page-body h2,
.post-content h2 {
  background: linear-gradient(135deg, var(--orange-600), var(--pink-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 2rem 0 1rem;
}

.page-body a,
.post-content a {
  color: var(--orange-600);
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-400), var(--pink-400), var(--purple-400), var(--teal-400));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--pink-400);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
   ======================================== */

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.98));
    padding-top: 80px;
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  .nav-links > li {
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  }
  
  .nav-links > li > a {
    padding: 1rem;
    justify-content: space-between;
  }
  
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.05), rgba(236, 72, 153, 0.05));
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin-left: 1rem;
  }
  
  .nav-links > li.active > .sub-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }
  
  .nav-links > li.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .hero-section {
    padding: 4rem 1.5rem;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* WordPress Core */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }