/*
Theme Name: Ctrldigit Blog
Theme URI: https://ctrldigit.com
Author: Ctrldigit Technologies LLP
Author URI: https://ctrldigit.com
Description: Lightweight WordPress theme matching Ctrldigit main site design. Blog posts only.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctrldigit-blog
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Caveat:wght@400;700&display=swap');

/* Note: Tailwind CSS is loaded via script tag in header.php for better compatibility */

/* Custom CSS Variables */
:root {
  --font-family-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-family-handwritten: 'Caveat', cursive;
  --color-bg-offwhite: #fdfcfa;
  --color-accent-purple: #a855f7;
}

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

body {
  font-family: var(--font-family-sans);
  scroll-behavior: smooth;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Navbar Critical Styles */
#navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

#main-navbar {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.5s ease;
  pointer-events: auto;
}

@media (min-width: 640px) {
  #navbar-container {
    padding: 1.5rem 1.5rem 0;
  }
  #main-navbar {
    padding: 1.25rem 2.5rem;
  }
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo img {
  width: 2.25rem;
  height: 2.25rem;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .navbar-logo img {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.navbar-logo:hover img {
  transform: scale(1.1) rotate(6deg);
}

.navbar-logo span {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
}

@media (min-width: 640px) {
  .navbar-logo span {
    font-size: 1.25rem;
  }
}

.navbar-links {
  display: none;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}

.navbar-link {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: #a855f7;
}

/* Services Dropdown */
#services-dropdown {
  position: relative;
}

#services-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  width: 14rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.5rem 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#services-menu.hidden {
  display: none;
}

#services-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
}

#services-menu a:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.2);
}

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: all 0.5s ease;
}

#mobile-menu.opacity-0 {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2.5rem);
}

#mobile-menu.opacity-100 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

#mobile-menu a {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: color 0.3s ease;
}

#mobile-menu a:hover {
  color: #a855f7;
}

/* Main Content */
main {
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  padding-top: 6rem;
}

/* Footer Critical Styles */
footer {
  position: relative;
  background: #111827 !important;
  color: #fff !important;
  overflow: hidden !important;
  width: 100% !important;
}

footer .footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

footer .footer-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  footer .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

footer .footer-logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

footer .footer-logo-section img {
  width: 2.5rem;
  height: 2.5rem;
}

footer .footer-logo-section h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

@media (min-width: 768px) {
  footer .footer-logo-section h3 {
    font-size: 1.875rem;
  }
}

footer .footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  footer .footer-description {
    font-size: 1rem;
  }
}

footer .footer-social {
  display: flex;
  gap: 0.75rem;
}

footer .footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .footer-social a:hover {
  background: #9333ea;
  transform: scale(1.1);
}

footer .footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

footer .footer-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-section ul li {
  margin-bottom: 0.75rem;
}

footer .footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  footer .footer-section a {
    font-size: 1rem;
  }
}

footer .footer-section a:hover {
  color: #a855f7;
}

footer .footer-section span {
  color: #9ca3af;
  font-size: 0.875rem;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  footer .footer-section span {
    font-size: 1rem;
  }
}

footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

footer .footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #a855f7;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

footer .footer-contact-item.centered {
  align-items: center;
}

footer .footer-contact-item.centered svg {
  margin-top: 0;
}

footer .footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  footer .footer-bottom {
    padding: 2rem 0;
  }
}

footer .footer-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  footer .footer-bottom-content {
    flex-direction: row;
  }
}

footer .footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  footer .footer-bottom p {
    text-align: left;
  }
}

footer .footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

footer .footer-bottom-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

footer .footer-bottom-links a:hover {
  color: #a855f7;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #1e1b4b;
  border-radius: 10px;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: #312e81;
}

.selection-purple::selection {
  background-color: var(--color-accent-purple);
  color: #fff;
}

/* Blog Post Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post {
  background: linear-gradient(to bottom right, #1a1a1a, #0a0a0a);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.blog-post:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.blog-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.blog-post-meta {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.blog-post-link {
  color: var(--color-accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-post-link:hover {
  color: #c084fc;
}

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

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-post-content p {
  color: #d1d5db;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.single-post-content a {
  color: var(--color-accent-purple);
  text-decoration: underline;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

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

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--color-accent-purple);
  color: #fff;
}

.pagination .current {
  background: var(--color-accent-purple);
  color: #fff;
}

/* Archive Styles */
.archive-header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.archive-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.archive-description {
  color: #9ca3af;
  font-size: 1.125rem;
}

