/* ============================================
   Additional Main Styles
   ============================================ */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

code, pre {
  background-color: #f4f4f4;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

pre {
  padding: 15px;
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

/* Buttons */
button, input[type="button"], input[type="submit"], .btn {
  background-color: #667eea;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, .btn:hover {
  background-color: #764ba2;
}

button:active, input[type="button"]:active, input[type="submit"]:active, .btn:active {
  transform: translateY(1px);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

/* Comments */
.comments-area {
  margin-top: 40px;
}

.comment-list {
  list-style: none;
  margin: 20px 0;
}

.comment {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

.comment-author {
  font-weight: 600;
  color: #667eea;
}

.comment-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.comment-content {
  margin-top: 10px;
  line-height: 1.8;
}

.comment-content p {
  margin-bottom: 10px;
}

.reply {
  margin-top: 10px;
}

.reply a {
  color: #667eea;
  font-size: 12px;
}

/* Pagination */
.pagination,
.posts-navigation {
  margin: 40px 0;
  text-align: center;
}

.page-links,
.posts-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-links a,
.page-links span,
.posts-navigation a {
  padding: 8px 12px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-links a:hover,
.posts-navigation a:hover {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}

.page-links .page-numbers.current,
.page-links .page-numbers.prev,
.page-links .page-numbers.next {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}

/* Tables */
table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background-color: white;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #667eea;
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Lists */
ul, ol {
  margin: 20px 0;
  padding-left: 30px;
}

ul ul, ol ol, ul ol, ol ul {
  margin: 10px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

/* Images and Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 20px 0;
  background-color: white;
  padding: 10px;
  border-radius: 4px;
}

figcaption {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  text-align: center;
}

/* Embeds */
.wp-audio-shortcode,
.wp-video-shortcode,
.wp-playlist {
  margin: 20px 0;
}

.mejs-container {
  width: 100%;
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.gallery-item {
  background-color: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Print styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  a {
    color: #0073aa;
    text-decoration: underline;
  }

  .no-print,
  .menu-toggle,
  nav,
  .sidebar,
  .comments-area,
  .navigation {
    display: none;
  }

  article {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Utility Classes */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin: 20px auto;
  text-align: center;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
