/*
Theme Name: CYNO Theme
Description: Custom styles for CYNO theme
Version: 1.0.0
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: Georgia, "Times New Roman", Times, serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    Courier, monospace;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown menu styles */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.navbar-nav .dropdown-item.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Dropdown toggle styles */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

.navbar-nav .dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: rgba(0, 0, 0, 0.55);
  }

  .navbar-nav .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.site-main {
  padding: 0;
}

.post-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-item .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-item .card-img-top {
  overflow: hidden;
}

.post-item .card-img-top img {
  transition: transform 0.3s ease;
}

.post-item .card:hover .card-img-top img {
  transform: scale(1.05);
}

.entry-meta {
  font-size: 0.9rem;
}

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

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

.widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary-color);
}

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

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

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #ccc;
  text-decoration: underline;
}

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

.pagination {
  justify-content: center;
  margin-top: 2rem;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

@media (max-width: 768px) {
  .site-main {
    padding: 0;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .widget {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .post-item .card-body {
    padding: 1rem;
  }

  .entry-meta {
    font-size: 0.8rem;
  }

  .entry-meta span {
    display: block;
    margin-bottom: 0.25rem;
  }
}

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

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

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

/* ==========================================================================
   Custom Components
   ========================================================================== */

.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

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

@media print {
  .navbar,
  .site-footer,
  .btn,
  .pagination {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}
