/*
Theme Name: Aksy Portal
Theme URI: https://aksy-invest.kg
Description: Инвестиционный портал развития Аксыйского района. Investment development portal for Aksy District with transparency rating, tourism guide, and investor opportunities.
Version: 1.0.0
Author: Aksy Development Team
Author URI: https://aksy-invest.kg
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aksy-portal
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
  --ink: #14211C;
  --pine: #11574A;
  --pine-soft: #1A6E5E;
  --deep: #0A332C;
  --apricot: #E8862E;
  --apricot-soft: #F5A95C;
  --gold: #C9A445;
  --gold-soft: #E3C878;
  --paper: #F3F6F2;
  --card: #FFFFFF;
  --mist: #D8E4DC;
  --muted: #5B6E66;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3 {
  font-family: 'Raleway', sans-serif;
  line-height: 1.18;
}

.mono {
  font-family: 'Noto Sans', sans-serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* WordPress core classes */
.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 24px;
}

.alignright {
  float: right;
  margin-left: 24px;
}

.wp-caption {
  max-width: 100%;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Main content */
.page-content,
.post-content {
  padding: 40px 0;
}

/* Posts and pages */
.posts-list {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.post-item {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 24px;
  transition: 0.2s;
}

.post-item:hover {
  border-color: var(--pine);
  transform: translateY(-2px);
}

.post-item .post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.post-item .post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.post-item .post-excerpt {
  color: var(--muted);
  margin-bottom: 16px;
}

/* Forms */
input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
textarea,
select {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: 9px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: 0.2s;
}

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(--pine);
  box-shadow: 0 0 0 3px rgba(17, 87, 74, 0.1);
}

/* Comments */
.comments-area {
  margin-top: 40px;
}

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

.comment {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.comment-content {
  font-size: 14px;
  color: var(--ink);
}

/* Sidebar */
.sidebar {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mist);
}

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

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--mist);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  text-decoration: none;
  color: var(--pine);
  font-weight: 500;
  transition: 0.2s;
}

.sidebar-list a:hover {
  color: var(--apricot);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination .page-numbers {
  display: inline-block;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: 0.2s;
}

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

/* Buttons */
.btn,
.button,
input[type='submit'],
input[type='button'] {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: 0.2s;
  background: var(--apricot);
  color: #fff;
  cursor: pointer;
}

.btn:hover,
.button:hover,
input[type='submit']:hover,
input[type='button']:hover {
  background: #D27424;
  transform: translateY(-2px);
}

.btn.btn-ghost,
.button.ghost {
  background: rgba(17, 87, 74, 0.1);
  color: var(--pine);
  border: 1.5px solid var(--pine);
}

.btn.btn-ghost:hover,
.button.ghost:hover {
  background: var(--pine);
  color: #fff;
}

/* Responsive */
@media (max-width: 920px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1,
  h2,
  h3 {
    font-size: 18px;
  }

  .sidebar {
    margin-top: 24px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .site-footer,
  nav,
  .sidebar {
    display: none !important;
  }

  .post-content,
  .page-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
  }
}
