/*
Theme Name: Tutorial Academy
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern tutorial learning platform theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tutorial-academy
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --primary-color: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary-color: #8b5cf6;
  --background-color: #0f172a;
  --card-background: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-color: #334155;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  padding: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-title:hover {
  color: #e0e7ff;
}

.site-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Navigation */
nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

/* Tutorials Grid */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tutorial-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-color);
}

.tutorial-thumbnail {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.tutorial-content {
  padding: 1.5rem;
}

.tutorial-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tutorial-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tutorial-instructor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tutorial-rating {
  color: var(--warning-color);
}

.tutorial-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.tutorial-difficulty {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-beginner {
  background: var(--success-color);
  color: white;
}

.difficulty-intermediate {
  background: var(--warning-color);
  color: white;
}

.difficulty-advanced {
  background: var(--danger-color);
  color: white;
}

/* Single Tutorial */
.tutorial-player {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tutorial-info {
  padding: 2rem;
}

.tutorial-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tutorial-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.reviews-section h2 {
  margin-bottom: 1.5rem;
}

.review-item {
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.review-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review-rating {
  color: var(--warning-color);
  margin-bottom: 0.5rem;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.sidebar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: #7c3aed;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

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

  .tutorial-info h1 {
    font-size: 1.5rem;
  }

  .tutorial-details {
    grid-template-columns: 1fr;
  }

  .site-content {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  header, footer, nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
