/*
Theme Name: SMID Pro
Theme URI: https://chmnisar786.com
Author: SMID
Author URI: https://chmnisar786.com
Description: Modern, eye-catching WordPress theme with dark theme and neon colors
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smid-pro
Domain Path: /languages
*/

:root {
  --primary-dark: #0f172a;
  --primary-darker: #1e293b;
  --neon-blue: #00d4ff;
  --neon-purple: #d946ef;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-logo:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 20px var(--neon-blue);
}

.custom-logo {
  max-height: 50px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--neon-blue);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  animation: moveGradient 15s ease infinite;
}

@keyframes moveGradient {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin: 0.5rem;
}

.btn-primary {
  background: var(--neon-blue);
  color: var(--primary-dark);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
}

.btn-secondary:hover {
  background: var(--neon-blue);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Content */
.main-content {
  padding: 4rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Post Card */
.post {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  transition: left 0.3s ease;
}

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

.post:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--neon-blue);
  transition: all 0.3s ease;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--neon-purple);
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.post-content {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Single Post */
.post.single-post {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.single-post .post-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.single-post .post-content {
  font-size: 1.1rem;
}

/* Navigation Links */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-navigation a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  color: var(--neon-purple);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.page-numbers {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--neon-blue);
  color: var(--primary-dark);
  border-color: var(--neon-blue);
}

/* Footer */
.site-footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  color: var(--text-muted);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-content a:hover {
  color: var(--neon-purple);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.post {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .post-navigation a {
    width: 100%;
    text-align: center;
  }

  .main-content {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .main-nav {
    gap: 0.25rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .post {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.25rem;
  }
}
