/*
Theme Name: ToDesk
Theme URI: https://example.com/todesk-clone
Author: AI Developer
Author URI: https://example.com
Description: A modern WordPress theme inspired by ToDesk, optimized for Google SEO, featuring a news module.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: todeskclone
*/

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --bg-white: #ffffff;
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
}

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

/* Hero Section */
.hero-section {
  padding: 160px 20px 100px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 15px;
}

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

/* Features */
.features-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* Stats */
.stats-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item h4 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* Scenarios */
.scenarios-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.scenario-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.scenario-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.scenario-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* News/Blog Module for SEO */
.news-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-thumb {
  height: 200px;
  background-color: #e5e7eb;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-dark);
}

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

.news-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #9ca3af;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .main-nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
    display: block;
  }
}