/*
Theme Name: UselessWeb Community
Description: A fun, playful theme for discovering and sharing useless websites
Author: UselessWeb Community
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: uselessweb-community
Domain Path: /languages
*/

/* LOGIN PAGE STYLES - BEAUTIFUL REGISTRATION FORM */
.login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login form {
  background: white !important;
  padding: 3rem !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
  max-width: 450px !important;
  width: 100% !important;
}

.login h1 {
  text-align: center;
  color: #2d3436;
  margin-bottom: 2rem !important;
  font-size: 2rem;
}

.login h1 a {
  color: #C0392B !important;
  text-decoration: none !important;
}

.login #user_login,
.login #user_email,
.login #user_pass {
  width: 100% !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  border: 2px solid #eee !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
}

.login #user_login:focus,
.login #user_email:focus,
.login #user_pass:focus {
  outline: none !important;
  border-color: #C0392B !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

.login label {
  display: block;
  margin-bottom: 0.5rem !important;
  font-weight: 600;
  color: #2d3436;
}

.login p {
  text-align: center;
  color: #636e72;
  margin: 1rem 0 !important;
}

.login p a {
  color: #C0392B !important;
  font-weight: 600;
}

.login .wp-submit {
  width: 100% !important;
  padding: 1rem !important;
  background: linear-gradient(135deg, #C0392B, #E74C3C) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.login .wp-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.login .nav {
  text-align: center;
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid #eee;
}

.login .nav a {
  display: inline-block;
  margin: 0 0.5rem !important;
  color: #C0392B;
  font-weight: 500;
}

.login #backtoblog {
  text-align: center;
}

.login #backtoblog a {
  color: #C0392B !important;
  font-weight: 600;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Playful palette */
  --color-primary:   #FF4757;
  --color-secondary: #1E90FF;
  --color-accent:    #FFA502;
  --color-green:     #2ed573;
  --color-bg:        #FFFBF0;
  --color-dark:      #2D2D2D;
  --color-light-bg:  #f8f9fa;
  --color-text:      #2D2D2D;
  --color-muted:     #636e72;

  /* Legacy aliases so admin/other pages don't break */
  --primary-color:   var(--color-primary);
  --secondary-color: var(--color-secondary);
  --accent-color:    var(--color-accent);
  --text-dark:       var(--color-dark);
  --text-light:      var(--color-muted);
  --success-color:   #10B981;
  --warning-color:   #F59E0B;
  --error-color:     #EF4444;
  --info-color:      #3B82F6;
  --purple-color:    #8B5CF6;
  --dark-bg:         #1a1a2e;
  --light-bg:        var(--color-light-bg);

  --border-radius: 16px;
  --transition:    all 0.25s ease;
  --shadow-sm:     0 2px 0 var(--color-dark);
  --shadow-md:     4px 4px 0 var(--color-dark);
  --shadow-lg:     6px 6px 0 var(--color-dark);
  --shadow-xl:     8px 8px 0 var(--color-dark);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, .site-logo {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: var(--transition);
}
a:hover { color: var(--color-secondary); }
a:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* HEADER & NAVIGATION */
.site-header {
  background: var(--color-dark);
  padding: .9rem 0;
  box-shadow: 0 3px 0 var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.site-logo {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.site-logo a { color: white; text-decoration: none; }
.site-logo span { color: var(--color-accent); }

.site-navigation {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-navigation a {
  color: #dfe6e9;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.site-navigation a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.user-menu {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.btn-login, .btn-signup {
  padding: .45rem 1rem;
  border: 2px solid currentColor;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  transition: var(--transition);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-login {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
}
.btn-login:hover {
  background: white;
  color: var(--color-dark);
  border-color: white;
  text-decoration: none;
}

.btn-signup {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}
.btn-signup:hover {
  background: #ffbe3d;
  border-color: #ffbe3d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* HERO SECTION */
@keyframes wobble {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-2deg) scale(1.04); }
  30%  { transform: rotate(2deg) scale(1.06); }
  45%  { transform: rotate(-1.5deg) scale(1.04); }
  60%  { transform: rotate(1.5deg) scale(1.02); }
  75%  { transform: rotate(-1deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero {
  background: var(--color-dark);
  color: white;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,71,87,.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(30,144,255,.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: white;
}
.hero h1 em {
  color: var(--color-accent);
  font-style: normal;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: .85;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.1rem 2.4rem;
  background: var(--color-accent);
  color: var(--color-dark);
  border: 3px solid var(--color-dark);
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  animation: wobble 3s ease-in-out infinite;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.cta-button:hover {
  background: #ffbe3d;
  box-shadow: 10px 10px 0 var(--color-dark);
  transform: translateY(-2px);
  animation-play-state: paused;
  text-decoration: none;
  color: var(--color-dark);
}
.cta-button:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 var(--color-dark);
}

/* CONTAINER & CONTENT */
.container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

.content-section {
  padding: 3rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-dark);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: .75rem auto 0;
  border-radius: 2px;
}

/* Empty state */
.uwc-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-muted);
  font-size: 1rem;
  background: white;
  border: 2px dashed #ddd;
  border-radius: var(--border-radius);
}

/* GRID LAYOUTS */
.websites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}
@media (min-width: 540px) {
  .websites-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .websites-grid { grid-template-columns: repeat(3, 1fr); }
}

/* WEBSITE CARD */
.website-card {
  background: white;
  border-radius: 20px;
  border: 3px solid var(--color-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.website-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-xl);
}

.website-card-banner {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 3px solid var(--color-dark);
  animation: float-up 4s ease-in-out infinite;
}

.website-content {
  padding: 1.2rem 1.2rem .8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.website-category {
  display: inline-block;
  color: var(--color-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .7rem;
  border-radius: 20px;
  border: 2px solid var(--color-dark);
  align-self: flex-start;
}

.website-name { margin: 0; }
.visit-title-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-dark);
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: color .2s;
}
.visit-title-btn:hover { color: var(--color-primary); }

.website-description {
  font-size: .88rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex-grow: 1;
  margin: 0;
}

/* Card footer */
.website-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem;
  border-top: 2px solid #f1f2f6;
  gap: .75rem;
}

.card-meta {
  display: flex;
  gap: .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-muted);
  flex-shrink: 0;
}
.visit-count, .vote-count {
  display: flex;
  align-items: center;
  gap: .2rem;
  white-space: nowrap;
}
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.website-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.website-name a {
  color: var(--text-dark);
}

.website-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.website-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.vote-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* VOTE BUTTON */
.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .45rem 1rem;
  background: white;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
}
.vote-btn:hover {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-dark);
  box-shadow: var(--shadow-md);
}
.vote-btn.voted {
  background: var(--color-green);
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.vote-btn.voted:hover { background: #26c45e; }

/* BUTTONS & FORMS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #ff5252);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  opacity: 0.9;
}

form {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* LEADERBOARD */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.leaderboard-table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.leaderboard-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.leaderboard-table tr:hover {
  background: #f9f9f9;
}

.rank {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}

/* PROFILE */
.profile-header {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ANIMATIONS */
@keyframes confetti {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(300px) rotate(720deg);
  }
}

.confetti {
  animation: confetti 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* FOOTER */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 0.95rem;
}

.footer-section a {
  color: #bbb;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: white;
}

.footer-brand p {
  margin-bottom: 1rem;
  color: #bbb;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  margin-bottom: 0;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

/* Footer Menu Styling */
.footer-menu-wrapper {
  display: block;
}

.footer-menu-wrapper.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 0.95rem;
}

.footer-menu-wrapper .menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-wrapper .menu-item {
  margin-bottom: 0.5rem;
}

.footer-menu-wrapper .menu-item a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  display: block;
}

.footer-menu-wrapper .menu-item a:hover {
  color: white;
}

.footer-menu-wrapper .menu-item.current-menu-item > a {
  color: var(--accent-color);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}

/* FILTERS */
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  min-height: 44px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

/* ADMIN */
.admin-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-box {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.admin-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.admin-stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* RESPONSIVE - TABLET (768px+) */
@media (min-width: 768px) {
  .header-content {
    padding: 0 2rem;
  }

  .site-logo {
    font-size: 1.4rem;
  }

  .site-navigation {
    gap: 2rem;
  }

  .site-navigation a {
    font-size: 1rem;
  }

  .user-menu {
    gap: 1rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 2rem;
  }

  .content-section {
    padding: 3rem 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .websites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  form {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .site-footer {
    padding: 2.5rem 2rem;
  }

  .leaderboard-table {
    font-size: 0.95rem;
  }

  .leaderboard-table th {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .leaderboard-table td {
    padding: 1rem;
  }

  .profile-header {
    padding: 2rem;
    gap: 2rem;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 2.8rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
  }
}

/* RESPONSIVE - DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .header-content {
    padding: 0 2rem;
  }

  .site-logo {
    font-size: 1.5rem;
  }

  .site-navigation {
    gap: 2.5rem;
  }

  .site-navigation a {
    font-size: 1rem;
  }

  .hero {
    padding: 6rem 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
  }

  .container {
    padding: 0 2rem;
  }

  .content-section {
    padding: 4rem 2rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .websites-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .website-card {
    display: flex;
    flex-direction: column;
  }

  .website-thumbnail {
    height: 200px;
  }

  form {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 2rem;
  }

  .leaderboard-table {
    font-size: 1rem;
  }

  .leaderboard-table th {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .leaderboard-table td {
    padding: 1rem;
  }

  .profile-header {
    padding: 2rem;
    gap: 2rem;
    flex-wrap: nowrap;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .profile-stats {
    gap: 2rem;
    margin-top: 0;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .btn-login, .btn-signup {
    padding: 0.6rem 1.2rem;
  }

  .vote-btn {
    padding: 0.5rem 1rem;
  }

  .website-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Page responsive styles */
  .page-title {
    font-size: 2.5rem;
  }

  .page-header {
    padding: 3rem 0;
  }

  .page-content {
    padding: 4rem 0;
  }
}

.hidden {
  display: none !important;
}

/* PROFILE SUBMISSIONS TABLE */
.profile-submissions-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-submissions-table thead tr {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.profile-submissions-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-submissions-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.profile-submissions-table tr:last-child td {
  border-bottom: none;
}

.profile-submissions-table tr:hover {
  background: #f9f9f9;
}

.submission-status {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.submission-status.approved {
  background: #2ecc71;
}

.submission-status.featured {
  background: #2ecc71;
}

.submission-status.pending {
  background: #f39c12;
}

.submission-status.rejected {
  background: #e74c3c;
}

.submission-url {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: #666;
}

/* RESPONSIVE PROFILE TABLE */
/* MOBILE RESPONSIVE FORMS */
@media (max-width: 768px) {
  /* Submit Page Forms */
  .content-section > .container > div {
    padding: 1rem;
  }

  .content-section > .container > div > form {
    padding: 1.5rem !important;
  }

  /* Form fields */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  /* Form group spacing */
  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  /* Profile header responsive */
  .profile-header {
    display: block !important;
    text-align: center;
    padding: 1.5rem !important;
  }

  .profile-avatar {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1rem !important;
    font-size: 2rem !important;
  }

  .profile-info {
    flex-grow: 0;
  }

  /* Profile stats responsive */
  .profile-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
  }

  .stat {
    flex: none !important;
  }

  .stat-value {
    font-size: 1.2rem !important;
  }

  /* Account settings grid responsive */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Profile submissions table responsive */
  .profile-submissions-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .profile-submissions-table thead,
  .profile-submissions-table tbody,
  .profile-submissions-table th,
  .profile-submissions-table td,
  .profile-submissions-table tr {
    display: block;
  }

  .profile-submissions-table th,
  .profile-submissions-table td {
    padding: 0.75rem;
  }

  .profile-submissions-table th {
    font-size: 0.8rem;
  }

  .submission-url {
    font-size: 0.75rem;
    word-break: break-word;
  }

  /* Button responsive */
  .btn {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  button[type="submit"],
  .btn.btn-primary {
    width: 100%;
    padding: 1rem;
  }

  /* Information boxes responsive */
  [style*="max-width: 600px"] {
    padding: 1rem !important;
  }

  /* Submit form box responsive */
  [style*="background: white"] {
    padding: 1.5rem !important;
  }

  /* Guidelines box responsive */
  [style*="background: #fff3cd"] {
    padding: 1rem !important;
  }

  [style*="background: #f0f7ff"] {
    padding: 1rem !important;
  }

  /* WordPress login form responsive */
  #loginform,
  .login form {
    padding: 1.5rem !important;
  }

  #loginform input,
  .login form input {
    font-size: 16px;
    padding: 0.75rem !important;
  }

  #wp-submit,
  .login .button {
    width: 100%;
    padding: 0.8rem !important;
  }

  /* Custom plugin login/signup forms */
  .wp-login-form,
  .user-login-form,
  .user-signup-form,
  .login-form,
  .signup-form {
    max-width: 100% !important;
    padding: 1.5rem !important;
  }
}

/* EXTRA SMALL DEVICES (max-width: 480px) */
@media (max-width: 480px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
    padding: 0.7rem;
  }

  .form-group {
    margin-bottom: 0.8rem;
  }

  .profile-avatar {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.8rem !important;
  }

  .profile-stats {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .stat-value {
    font-size: 1.1rem !important;
  }

  button[type="submit"] {
    padding: 0.8rem !important;
    font-size: 0.9rem;
  }

  [style*="padding: 2rem"] {
    padding: 1rem !important;
  }

  [style*="gap: 2rem"] {
    gap: 1rem !important;
  }

  #wp-submit,
  .login .button {
    width: 100%;
    padding: 0.8rem !important;
    font-size: 0.95rem;
  }

  .wp-login-form input,
  .login form input {
    padding: 0.7rem !important;
    margin-bottom: 0.8rem !important;
  }
}



/* STATISTICS SECTION STYLES */
.statistics-section {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  padding: 4rem 0;
  color: white;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  color: var(--text-dark);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  opacity: 1;
}

/* HOW IT WORKS SECTION STYLES */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
}

.how-it-works-item {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-left: 3px solid var(--info-color);
}

.how-it-works-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2),
              0 0 20px rgba(255, 107, 107, 0.1);
}

.how-it-works-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.how-it-works-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.how-it-works-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .how-it-works-item {
    padding: 1.5rem;
  }

  /* Page responsive styles */
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .page-header {
    padding: 1.5rem 0;
  }

  .page-content {
    padding: 1.5rem 0;
    font-size: 1rem;
  }

  .page-content h1 {
    font-size: 1.6rem;
    margin: 1.5rem 0 0.8rem 0;
  }

  .page-content h2 {
    font-size: 1.3rem;
    margin: 1.3rem 0 0.6rem 0;
  }

  .page-content h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
  }
}

.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* SINGLE POST STYLING */

.content-wrapper {
  min-height: calc(100vh - 200px);
}

.single-post {
  background: white;
}

/* Featured Image */
.single-post-featured-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  background: var(--bg-light);
}

.single-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Post Header */
.single-post-header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

.single-post-header .container {
  max-width: 800px;
}

.post-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
  word-wrap: break-word;
  text-align: left;
}

/* Post Metadata */
.post-meta-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.post-meta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.author-name {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.author-name:hover {
  text-decoration: underline;
}

.post-date,
.reading-time {
  font-size: 0.95rem;
  color: var(--text-light);
}

.post-date {
  display: flex;
  align-items: center;
}

.reading-time {
  background: var(--bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Categories */
.post-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #ff5252);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.category-tag:hover {
  background: linear-gradient(135deg, #ff5252, #ff3c3c);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

/* Post Content */
.single-post-content-wrapper {
  background: white;
  padding: 3rem 0;
}

.single-post-content-wrapper .container {
  max-width: 800px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: 0.3px;
}

/* Content Typography */
.post-content h1 {
  font-size: 2.2rem;
  margin: 2.5rem 0 1.2rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2.2rem 0 1rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
  padding-top: 0.5rem;
  border-top: 2px solid var(--primary-color);
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.post-content p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.post-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  transition: var(--transition);
}

.post-content a:hover {
  border-bottom-color: var(--primary-color);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
  text-align: left;
}

.post-content li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.post-content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

.post-content code {
  background: var(--bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.95em;
  color: #d63384;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.2rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #333;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.post-content th {
  background: var(--bg-light);
  font-weight: 600;
}

/* Tags Section */
.post-tags-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.post-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.post-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.post-tag:hover {
  background: var(--primary-color);
  color: white;
}

/* Author Bio Section */
.single-post-author-bio-section {
  background: var(--bg-light);
  padding: 3rem 0;
  margin: 3rem 0;
}

.single-post-author-bio-section .container {
  max-width: 850px;
}

.post-author-bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.post-author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.author-bio-content p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.author-bio-content p:last-child {
  margin-bottom: 0;
}

/* Post Navigation */
.post-navigation {
  background: white;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
  margin: 3rem 0;
}

.post-navigation .container {
  max-width: 850px;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: var(--bg-light);
  transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
  background: #f0f0f0;
  transform: translateX(var(--transition-transform, 0));
}

.nav-next:hover {
  transform: translateX(4px);
}

.nav-previous:hover {
  transform: translateX(-4px);
}

.nav-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.nav-link {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  word-wrap: break-word;
  transition: var(--transition);
}

.nav-link:hover {
  color: #5a67d8;
}

/* PAGE TEMPLATE STYLES */
.page-section {
  background: white;
  min-height: calc(100vh - 200px);
}

.page-article {
  background: white;
}

/* Page Header */
.page-header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

.page-header .container {
  max-width: 800px;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
  word-wrap: break-word;
  text-align: left;
}

/* Page Featured Image */
.page-featured-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  background: var(--bg-light);
  margin: 2rem 0;
  border-radius: 8px;
}

.page-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page Content */
.page-content {
  background: white;
  padding: 3rem 0;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: 0.3px;
}

.page-content .container {
  max-width: 800px;
}

/* Page Content Typography */
.page-content h1 {
  font-size: 2.2rem;
  margin: 2.5rem 0 1.2rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 2.2rem 0 1rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
  padding-top: 0.5rem;
  border-top: 2px solid var(--primary-color);
}

.page-content h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.page-content h4,
.page-content h5,
.page-content h6 {
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: left;
}

.page-content p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.page-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 107, 107, 0.3);
  transition: var(--transition);
}

.page-content a:hover {
  border-bottom-color: var(--primary-color);
}

.page-content ul,
.page-content ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
  text-align: left;
}

.page-content li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.page-content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

.page-content code {
  background: var(--bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.95em;
  color: #d63384;
}

.page-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.2rem 0;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: #333;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.page-content th,
.page-content td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.page-content th {
  background: var(--bg-light);
  font-weight: 600;
}

/* Comments Section */
.post-comments-section {
  max-width: 850px;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.8rem;
  }

  .post-meta-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-meta-left {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .post-categories {
    width: 100%;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .post-content h1 {
    font-size: 1.6rem;
  }

  .post-content h2 {
    font-size: 1.4rem;
  }

  .post-content h3 {
    font-size: 1.2rem;
  }

  .single-post-content-wrapper {
    padding: 2rem 0;
  }

  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }

  .post-author-bio img {
    margin: 0 auto;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .single-post-featured-image {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.5rem;
  }

  .post-meta-left {
    flex-direction: column;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-tags {
    gap: 0.5rem;
  }

  .post-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* =============== ANIMATION KEYFRAMES =============== */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes underlineSlide {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}

/* =============== ENHANCED UI/UX STYLES =============== */

/* Status Badges - Semantic Colors */
.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.status-approved {
  background: #D1FAE5;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-featured {
  background: #D1FAE5;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-pending {
  background: #FEF3C7;
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.status-rejected {
  background: #FEE2E2;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

/* Enhanced Button Styles */
.btn,
button,
input[type="submit"],
input[type="button"] {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #ff5252;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-success {
  background: var(--success-color);
  color: white;
  border: none;
}

.btn-success:hover {
  background: #059669;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-warning {
  background: var(--warning-color);
  color: white;
  border: none;
}

.btn-warning:hover {
  background: #D97706;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-error {
  background: var(--error-color);
  color: white;
  border: none;
}

.btn-error:hover {
  background: #DC2626;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* vote-btn styles consolidated above */

/* Enhanced Form Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1),
              inset 0 0 0 1px var(--primary-color);
  background-color: white;
}

input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="url"]:invalid,
textarea:invalid {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Label Styling */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

label.required::after {
  content: " *";
  color: var(--error-color);
}

/* Form Error Messages */
.form-error {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-error::before {
  content: "✕";
  font-weight: bold;
}

/* Form Success Messages */
.form-success {
  color: var(--success-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-success::before {
  content: "✓";
  font-weight: bold;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 400px;
  animation: slideIn 0.3s ease;
  font-weight: 500;
}

.toast.success {
  background: var(--success-color);
  color: white;
  border-left: 4px solid #059669;
}

.toast.error {
  background: var(--error-color);
  color: white;
  border-left: 4px solid #DC2626;
}

.toast.warning {
  background: var(--warning-color);
  color: white;
  border-left: 4px solid #D97706;
}

.toast.info {
  background: var(--info-color);
  color: white;
  border-left: 4px solid #1D4ED8;
}

.toast.closing {
  animation: fadeOut 0.3s ease;
}

/* Enhanced Card Styling with Colored Borders */
.card,
.website-card,
.how-it-works-item {
  border-left: 3px solid var(--primary-color);
  transition: var(--transition);
}

.card:hover,
.website-card:hover,
.how-it-works-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 107, 107, 0.1);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 107, 107, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Glow Effects */
.with-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Links with Underline Animation */
a.animated-link {
  position: relative;
  display: inline-block;
}

a.animated-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

a.animated-link:hover::after {
  width: 100%;
}

/* Icon Hover Animations */
.icon-hover {
  display: inline-block;
  transition: var(--transition);
}

.icon-hover:hover {
  transform: rotate(5deg) scale(1.1);
}

/* Disabled State */
:disabled,
.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Mobile Toast Position */
@media (max-width: 768px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}
/* =============== WORDPRESS ADMIN BAR COMPATIBILITY =============== */
/* Ensure sticky header works correctly when admin bar is visible */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* =============== HOMEPAGE FULL WIDTH FIX =============== */
/* Ensure homepage sections match the width of other pages */
.home #main-content,
.front-page #main-content,
body.home main,
body.front-page main {
  width: 100%;
  max-width: 100%;
}

/* Make homepage hero content wider to match other pages */
.home .hero-content,
.front-page .hero-content {
  max-width: 1000px;
}

/* Ensure all content sections are full width */
.home .content-section,
.front-page .content-section {
  width: 100%;
  max-width: 100%;
}

/* SEO content section - match container width of other pages */
.home .seo-content > .container > div,
.front-page .seo-content > .container > div {
  max-width: 1000px;
}

/* Statistics section full width */
.home .statistics-section,
.front-page .statistics-section {
  width: 100%;
}

/* Ensure grids use full container width */
.home .websites-grid,
.front-page .websites-grid,
.home .stats-grid,
.front-page .stats-grid {
  width: 100%;
}

/* =============== ACCESSIBILITY IMPROVEMENTS =============== */

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3436;
  color: white;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid #F4A300;
  outline-offset: 2px;
}

/* Enhanced focus styles for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #D63031;
  outline-offset: 2px;
}

/* Navigation links - ensure underline on focus/hover */
.site-navigation a:focus,
.site-navigation a:hover {
  text-decoration: underline;
  outline-color: white;
}

/* Footer links accessibility */
.footer-nav a {
  text-decoration: underline;
}

/* Ensure links in content have underlines */
.content-section a:not(.cta-button):not(.btn):not(.vote-btn),
.page-content a,
article a {
  text-decoration: underline;
}

/* Remove underline from buttons styled as links */
.cta-button,
.btn,
.btn-login,
.btn-signup,
.vote-btn {
  text-decoration: none !important;
}

.cta-button:hover,
.btn:hover {
  text-decoration: none !important;
}