/*
Theme Name: EarthVasi
Theme URI: https://earthvasi.com
Author: EarthVasi Team
Author URI: https://earthvasi.com
Description: A modern, clean, and professional WordPress theme for EarthVasi - Random Video Chat Community Platform. 18+ safe and friendly platform with custom homepage design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earthvasi
Tags: custom-menu, featured-images, footer-widgets, responsive-design, community, video-chat
*/

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */

:root {
  /* Primary Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2d3561 0%, #1a1f44 100%);
  
  /* Colors */
  --primary-purple: #667eea;
  --primary-blue: #4facfe;
  --dark-purple: #764ba2;
  --dark-blue: #00f2fe;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', var(--font-primary);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--dark-purple);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--transition-base);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
}

.btn-outline:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
  margin-bottom: var(--spacing-md);
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.card-text {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.alignleft {
  float: left;
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--spacing-xs);
}

.sticky {
  border-left: 4px solid var(--primary-purple);
  padding-left: var(--spacing-sm);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-navigation {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-menu a {
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ==========================================================================
   Post & Page Content
   ========================================================================== */

.post-content,
.page-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
}

.post-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  margin-bottom: var(--spacing-sm);
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.875rem;
}

.post-meta i {
  margin-right: 0.25rem;
}

.post-thumbnail {
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.post-tags,
.post-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.tag,
.category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--primary-purple);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.tag:hover,
.category:hover {
  background: var(--primary-gradient);
  color: white;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.sidebar .widget {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.sidebar .widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar .widget-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 0.5rem 0;
}

.sidebar ul li a {
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.sidebar ul li a:hover {
  color: var(--primary-purple);
  padding-left: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark-gradient);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 0.5rem;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.footer-widget ul li a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-guidelines {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-guidelines h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.guidelines-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.guidelines-list li {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guidelines-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  font-size: 0.875rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: var(--spacing-lg) 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pagination a:hover,
.pagination .current {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: var(--spacing-lg);
}

.comment-list {
  list-style: none;
}

.comment {
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.comment-author {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.comment-reply-link {
  font-size: 0.875rem;
  color: var(--primary-purple);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .col-4, .col-6, .col-8 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }
  
  .main-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .col, .col-3, .col-4, .col-6, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.938rem;
  }
  
  .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-navigation,
  .sidebar,
  .site-footer,
  .comments-area {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
