/*
Theme Name: Dasabo Theme
Theme URI: https://www.dasabo.com
Author: Nicholas Sciortino
Author URI: https://sciortino.dev
Description: A custom WordPress theme for Dasabo blog with modern design and comprehensive security features
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: dasabo-theme
Tags: blog, modern, responsive, custom-header, custom-menu, security, performance
*/

/* Import Poppins Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --background: #e6eeff;
  --primary: #0b5ed7;
  --secondary: #a7caff;
  --featured: #ffc041;
  --primary-dark: rgb(19, 23, 41);
  --header-bg: #000333;
  --font-brand: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #001042;
  scroll-behavior: smooth;
}

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

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

/* Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header Styles */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
}

.site-logo {
  margin-right: 1.5rem;
  width: 12rem;
  height: 2.5rem;
  position: relative;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: flex-end;
  width: 100%;
}

.header-support {
  color: white;
  text-decoration: none;
  transition: all 0.1s;
  cursor: pointer;
  display: none;
}

.header-support:hover {
  opacity: 0.8;
}

.client-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: white;
  color: var(--primary-dark);
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: all 0.1s;
}

.client-area-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.client-area-btn:active {
  opacity: 1;
}

.client-area-btn img {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .header-support {
    display: inline-block;
  }

  .header-actions {
    gap: 2rem;
  }
}

/* Navigation */
.main-navigation {
  background: white;
  padding: 1rem 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: opacity 0.1s;
  letter-spacing: -0.01em;
}

.nav-menu a:hover {
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle img {
  filter: brightness(0) invert(1);
}

/* Mobile Menu Styles */
@media (max-width: 1023px) {
  .header-support {
    display: none;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-bg);
    padding: 5rem 1rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    overflow-y: auto;
  }

  .main-navigation.mobile-menu-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-menu a {
    color: white;
    font-size: 2rem;
    font-weight: bold;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 101;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Blog Content */
.blog-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.1s;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-card-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.read-more:hover {
  opacity: 0.8;
}

/* Single Post */
.blog-container .single-post {
  max-width: 48rem;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.post-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.post-content p {
  margin-bottom: 1.5rem;
}

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

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

.post-content a:hover {
  opacity: 0.8;
}

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

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.pagination a:hover {
  background: var(--primary);
  color: white;
}

.pagination .current {
  background: var(--primary);
  color: white;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  padding: 4rem 1rem;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

.footer-section h3, .footer-section h2 {
  color: #8d91ba;
  text-transform: uppercase;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul li {
  margin: 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: all 0.1s;
  display: inline-block;
  width: fit-content;
}

.footer-section a:hover {
  opacity: 0.8;
}

.footer-brand {
  width: fit-content;
}

.footer-brand img {
  width: 10rem;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: white;
  text-transform: none;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-brand h3 {
    font-size: 1.25rem;
  }
}

.footer-description {
  color: #7a7ea1;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 1280px) {
  .footer-bottom {
    flex-direction: row;
    align-items: flex-end;
  }
}

.footer-copyright {
  color: white;
  min-width: fit-content;
}

.footer-copyright p {
  margin: 0;
}

.footer-copyright p:last-child {
  color: #8d91ba;
  font-size: 1rem;
}

.payment-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 1280px) {
  .payment-icons {
    margin-top: 0;
    width: auto;
    justify-content: flex-end;
  }
}

.payment-icons img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .payment-icons img {
    width: 2rem;
    height: 2rem;
  }
}

/* Responsive */
@media (max-width: 1023px) {
  .header-actions {
    gap: 1rem;
  }

  .site-logo img {
    width: 10rem;
  }

  .client-area-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .client-area-btn img {
    width: 18px;
    height: 18px;
  }

  .blog-container {
    padding: 2rem 1rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .header-top {
    padding: 1rem 0;
  }

  .site-logo img {
    width: 8rem;
    height: 2rem;
  }

  .client-area-btn {
    padding: 0.25rem 0.5rem;
    gap: 0.375rem;
    font-size: 0.75rem;
  }

  .client-area-btn img {
    width: 16px;
    height: 16px;
  }

  .client-area-btn b {
    display: none;
  }

  .blog-container {
    padding: 1.5rem 0.5rem;
  }

  .blog-grid {
    gap: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .blog-container .single-post {
    padding: 1.5rem;
  }

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

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .post-content {
    font-size: 1rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright p {
    font-size: 0.875rem;
  }

  .payment-icons {
    justify-content: center;
    gap: 1rem;
  }

  .payment-icons img {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    font-size: 14px;
  }

  .header-top {
    padding: 0.75rem 0;
  }

  .site-logo img {
    width: 6rem;
    height: 1.5rem;
  }

  .blog-card-content {
    padding: 1rem;
  }

  .blog-container .single-post {
    padding: 1rem;
  }

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

  .footer-grid {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2rem 0;
  }
}

/* Utility Classes */
.interact {
  transition: all 0.1s ease;
}

.interact:hover {
  opacity: 0.8;
}

.interact:active {
  opacity: 1;
}

/* Button Styles */
button, .button {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-track {
  background: transparent;
}
