/*
Theme Name: PAL-FAS
Theme URI: https://pal-fas.example.com
Description: A modern, clean theme for PAL-FAS system
Version: 1.0.0
Author: PAL-FAS Team
Text Domain: pal-fas
*/

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

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-gray: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 70px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-title:hover {
  color: var(--primary-color);
}

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

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

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Main Content */
.site-main {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: 60px 0;
}

/* Page Header */
.page-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-description {
  color: var(--text-light);
  font-size: 18px;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* Post Card */
.post-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-gray);
}

.post-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.post-title a {
  color: var(--text-color);
  text-decoration: none;
}

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

.post-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Single Post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 32px;
}

.entry-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 24px;
}

.entry-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 18px;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 32px 0;
}

.entry-content ul,
.entry-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.entry-content a:hover {
  border-bottom-color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s;
}

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

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

/* Footer */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-content {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .site-header {
    height: auto;
  }

  .main-navigation ul {
    gap: 16px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 28px;
  }

  .entry-title {
    font-size: 32px;
  }

  .site-main {
    padding: 32px 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 32px;
}

.hidden {
  display: none;
}

