/*
Theme Name: Xchat
Theme URI: https://xchat.com
Author: Xchat Team
Author URI: https://xchat.com
Description: A WordPress theme inspired by x.com design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xchat
*/

:root {
  --primary-color: #000000;
  --secondary-color: #1d9bf0;
  --background-color: #ffffff;
  --text-color: #000000;
  --border-color: #e5e7eb;
  --hover-color: #f3f4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color 0.2s;
}

.nav-menu li a:hover {
  background-color: var(--hover-color);
}

/* Hero section */
.hero {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-color);
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: #374151;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: #333333;
}

/* Features section */
.features {
  padding: 60px 0;
  background-color: var(--background-color);
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: #6b7280;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 14px;
  color: #9ca3af;
}

/* Chat Interface Section */
.chat-interface {
  padding: 80px 0;
  background-color: #f9fafb;
}

.chat-interface .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.chat-interface-content {
  flex: 1;
}

.chat-interface-content h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.chat-interface-content p {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

.chat-interface-image {
  flex: 1;
}

.chat-interface-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.chat-interface-image img:hover {
  transform: scale(1.02);
}

/* Post styles */
main {
  padding: 40px 0;
  background-color: #f9fafb;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.post {
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.post h2 a:hover {
  color: var(--secondary-color);
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #6b7280;
}

.post-content {
  color: #374151;
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-content a {
  color: var(--secondary-color);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* Single post content */
.single-post-content {
  color: #374151;
  line-height: 1.6;
  padding: 20px;
  margin: 0 auto;
}

.single-post-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.single-post-content h2 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.single-post-content h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.single-post-content a {
  color: var(--secondary-color);
  text-decoration: none;
}

.single-post-content a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .posts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .post {
    padding: 20px;
  }
  
  .post h2 {
    font-size: 18px;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 5px;
  }
}

/* Medium devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chat-interface .container {
    flex-direction: column;
    text-align: center;
  }
  
  .chat-interface-content h2 {
    font-size: 28px;
  }
  
  .chat-interface-content p {
    font-size: 16px;
  }
}

/* Download Page Styles */
.download-page {
  padding: 40px 0;
}

.download-content {
  margin-bottom: 60px;
  padding: 30px;
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.download-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.download-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.download-content a {
  color: var(--secondary-color);
  text-decoration: none;
}

.download-content a:hover {
  text-decoration: underline;
}

.download-files h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.download-grid {
  overflow: hidden;
  margin: 0 -10px;
}

.download-item {
  float: left;
  width: 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}

.download-item-inner {
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-item-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-icon {
  flex-shrink: 0;
}

.download-info {
  flex: 1;
}

.download-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.download-info p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 5px;
}

.file-size {
  font-size: 12px !important;
  color: #9ca3af !important;
}

.download-button {
  flex-shrink: 0;
}

/* Pagination Styles */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.pagination .page-numbers:hover {
  background-color: var(--hover-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: white;
}

.pagination .prev, .pagination .next {
  padding: 8px 16px;
  border-radius: 6px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.pagination .prev:hover, .pagination .next:hover {
  background-color: var(--hover-color);
}

/* Small devices */
@media (max-width: 768px) {
  .chat-interface {
    padding: 40px 0;
  }
  
  .chat-interface .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .chat-interface-content h2 {
    font-size: 24px;
  }
  
  .chat-interface-content p {
    font-size: 14px;
  }
  
  .download-item {
    width: 100%;
  }
  
  .download-item-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .download-button {
    width: 100%;
    text-align: center;
  }
}

/* Medium devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .download-item {
    width: 50%;
  }
  
  .pagination .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
