/*
Theme Name: Computer Carriage
Theme URI: https://computercarriage.com
Author: Antigravity AI
Description: A modern, premium, and highly dynamic WordPress theme tailored for Computer Carriage, featuring daily posts, sticky pages, and gorgeous layouts.
Version: 1.0.0
Text Domain: computercarriage
*/

/* 
================================================================================
CSS Variables for Premium Design
================================================================================
*/
:root {
  /* Color Palette */
  --cc-primary: #6366f1;
  /* Indigo */
  --cc-primary-hover: #4f46e5;
  --cc-secondary: #0ea5e9;
  /* Light Blue */
  --cc-accent: #f43f5e;
  /* Rose */

  /* Backgrounds */
  --cc-bg-base: #0f172a;
  /* Slate 900 for modern dark theme */
  --cc-bg-surface: #1e293b;
  /* Slate 800 */
  --cc-bg-card: rgba(30, 41, 59, 0.7);
  /* Glassmorphism card */

  /* Typography Colors */
  --cc-text-main: #f8fafc;
  /* Slate 50 */
  --cc-text-muted: #94a3b8;
  /* Slate 400 */

  /* Borders and Effects */
  --cc-border: rgba(255, 255, 255, 0.1);
  --cc-glow: 0 0 20px rgba(99, 102, 241, 0.4);
  --cc-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --cc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --cc-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --cc-font-display: 'Outfit', 'Inter', sans-serif;
}

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

body {
  font-family: var(--cc-font-sans);
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #87ceeb 100%);
  background-attachment: fixed;
  color: var(--cc-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--cc-font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

/* 
================================================================================
Layout Utilities
================================================================================
*/
.cc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cc-section {
  padding: 5rem 0;
}

/* 
================================================================================
Header & Navigation
================================================================================
*/
.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-border);
  padding: 1rem 0;
}

.cc-header .cc-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-logo {
  font-family: var(--cc-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cc-text-main);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cc-logo .custom-logo {
  max-height: 40px;
  width: auto;
  display: block;
}

.cc-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.cc-nav a {
  color: var(--cc-text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.cc-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--cc-primary);
  transition: var(--cc-transition);
}

.cc-nav a:hover::after,
.cc-nav .current-menu-item>a::after {
  width: 100%;
}

/* 
================================================================================
Hero Section
================================================================================
*/
.cc-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cc-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: var(--cc-primary);
  filter: blur(150px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.cc-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: var(--cc-secondary);
  filter: blur(150px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.cc-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.cc-hero-title {
  font-size: 4rem;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.cc-hero-subtitle {
  font-size: 1.25rem;
  color: var(--cc-text-muted);
  margin-bottom: 2rem;
}

.cc-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--cc-primary);
  color: #fff;
  border-radius: 9999px;
  font-weight: 600;
  transition: var(--cc-transition);
  border: 1px solid transparent;
  cursor: pointer;
}

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

.cc-btn-outline {
  background: transparent;
  border-color: var(--cc-border);
  color: var(--cc-text-main);
}

.cc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cc-text-muted);
}

/* 
================================================================================
Cards & Grid (Posts / Reviews)
================================================================================
*/
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cc-card {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--cc-transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cc-shadow);
  border-color: rgba(99, 102, 241, 0.3);
}

.cc-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.cc-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cc-card-title a {
  color: var(--cc-text-main);
}

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

.cc-card-excerpt {
  color: var(--cc-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cc-card>.cc-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Sticky Post Badge */
.sticky .cc-card::before {
  content: 'Featured';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cc-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  z-index: 10;
}

/* 
================================================================================
Page Content & Single Post
================================================================================
*/
.cc-page-header {
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--cc-border);
  margin-bottom: 3rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid var(--cc-border);
}

.cc-page-title {
  font-size: 3rem;
}

.cc-single-header {
  text-align: left;
  padding: 4rem 2rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid var(--cc-border);
  margin-bottom: 2rem;
}

.cc-single-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cc-single-meta {
  color: var(--cc-text-muted);
  font-size: 0.95rem;
}

.cc-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--cc-border);
}

.cc-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cc-content h2,
.cc-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Social Share Block */
.cc-social-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cc-social-share span {
  font-weight: 600;
  color: var(--cc-text-muted);
}

.cc-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-border);
  transition: var(--cc-transition);
}

.cc-social-icon:hover {
  background: var(--cc-primary);
  transform: translateY(-3px);
}

/* 
================================================================================
Forms (Contact / Comments)
================================================================================
*/
.cc-form-group {
  margin-bottom: 1.5rem;
}

.cc-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cc-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--cc-border);
  border-radius: 0.5rem;
  color: var(--cc-text-main);
  font-family: var(--cc-font-sans);
  transition: var(--cc-transition);
}

.cc-form-control:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.cc-contact-card {
  padding: 3rem;
}

textarea.cc-form-control {
  min-height: 150px;
  resize: vertical;
}

/* 
================================================================================
Tables
================================================================================
*/
table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: var(--cc-bg-surface) !important;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--cc-shadow);
  color: var(--cc-text-main) !important;
}

th,
td,
.wp-block-table th,
.wp-block-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cc-border) !important;
  color: var(--cc-text-main) !important;
  background-color: transparent !important;
}

th,
.wp-block-table th {
  background-color: rgba(15, 23, 42, 0.9) !important;
  font-weight: 600;
  font-family: var(--cc-font-display);
  color: #fff !important;
}

tr:last-child td {
  border-bottom: none !important;
}

tbody tr:nth-child(even),
.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

tbody tr:hover td,
.wp-block-table tbody tr:hover td {
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.wp-block-table figcaption {
  color: var(--cc-text-muted);
}

/* 
================================================================================
Sidebar & Layout
================================================================================
*/
.cc-layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.cc-sidebar {
  position: sticky;
  top: 6rem;
}

.cc-widget {
  background: var(--cc-bg-surface);
  border: 1px solid var(--cc-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--cc-shadow);
}

.cc-widget-title {
  font-family: var(--cc-font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--cc-text-main);
  border-bottom: 1px solid var(--cc-border);
  padding-bottom: 0.5rem;
}

.cc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cc-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cc-widget ul li:last-child {
  border-bottom: none;
}

.cc-widget ul li a {
  color: var(--cc-text-muted);
  transition: var(--cc-transition);
}

.cc-widget ul li a:hover {
  color: var(--cc-primary);
}

/* Specific Widget Styling */
.cc-widget_search .search-form {
  display: flex;
}

.cc-widget_search .search-field {
  flex-grow: 1;
  border-radius: 0.5rem 0 0 0.5rem;
  border-right: none;
}

.cc-widget_search .search-submit {
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--cc-primary);
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  transition: var(--cc-transition);
}

.cc-widget_search .search-submit:hover {
  background: var(--cc-primary-hover);
}

.cc-widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cc-border);
  border-radius: 9999px;
  font-size: 0.85rem !important;
  /* Override inline WP styles */
  margin: 0.25rem;
  color: var(--cc-text-muted);
  transition: var(--cc-transition);
}

.cc-widget_tag_cloud .tagcloud a:hover {
  background: var(--cc-primary);
  color: #fff;
  border-color: var(--cc-primary);
}

/* 
================================================================================
Footer
================================================================================
*/
.cc-footer {
  background: var(--cc-bg-surface);
  border-top: 1px solid var(--cc-border);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
}

.cc-footer-text {
  color: var(--cc-text-muted);
  font-size: 0.9rem;
}

/* 
================================================================================
Header Redesign (Centered Nav)
================================================================================
*/
.cc-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.cc-logo {
  justify-self: start;
}

.cc-nav {
  justify-self: center;
}

.cc-header-right {
  justify-self: end;
}

.cc-cart-icon {
  color: var(--cc-text-main);
  border: 1px solid var(--cc-border);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc-cart-icon:hover {
  background: var(--cc-primary);
  color: #fff;
  border-color: var(--cc-primary);
}

/* 
================================================================================
Premium Massive Hero Section
================================================================================
*/
.cc-hero-premium {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.cc-hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.cc-hero-premium-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 3rem;
  text-align: center;
}

.cc-hero-top-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cc-hero-massive-left,
.cc-hero-massive-right {
  font-family: var(--cc-font-display);
  font-size: 9vw;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.cc-hero-center-box {
  max-width: 600px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cc-hero-desc {
  font-size: 1.1rem;
  color: var(--cc-text-main);
  line-height: 1.6;
}

.cc-hero-link {
  font-family: var(--cc-font-display);
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #fff;
  font-size: 1.1rem;
}

.cc-hero-vertical-text {
  border-top: 2px solid var(--cc-primary);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.cc-hero-vertical-text span {
  font-family: var(--cc-font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cc-text-main);
  line-height: 1.2;
}

/* 
================================================================================
Logo Ticker Banner
================================================================================
*/
.cc-logo-banner {
  border-top: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
  padding: 2rem 0;
  background: var(--cc-bg-base);
}

.cc-logo-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cc-partner-logo {
  font-family: var(--cc-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cc-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 
================================================================================
Stats Grid Section
================================================================================
*/
.cc-stats-section {
  padding: 5rem 0;
  background: var(--cc-bg-base);
}

.cc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cc-stat-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.cc-stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.cc-stat-primary {
  background: var(--cc-primary);
  color: #fff;
}

.cc-stat-dark {
  background: #27272a;
  /* Zinc 800 */
}

.cc-stat-darker {
  background: #18181b;
  /* Zinc 900 */
}

.cc-stat-light {
  background: #a1a1aa;
  /* Zinc 400 */
  color: #18181b;
}

.cc-stat-number {
  font-family: var(--cc-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: auto;
  margin-bottom: 0.5rem;
}

.cc-stat-label {
  font-size: 1rem;
  color: inherit;
  opacity: 0.8;
}

.cc-stat-bottom-text {
  margin-top: auto;
  font-size: 1.1rem;
}

.cc-stat-link {
  display: inline-block;
  margin-top: 1rem;
  color: #60a5fa;
  /* Light blue */
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.cc-stat-link:hover {
  color: #93c5fd;
}

.cc-stat-light .cc-stat-link {
  color: #2563eb;
  /* Darker blue for light cards */
}

.cc-stat-light .cc-stat-link:hover {
  color: #1d4ed8;
}

.cc-mobile-toggle {
  display: none;
}

/* 
================================================================================
Responsive Updates
================================================================================
*/
@media (max-width: 1024px) {
  .cc-layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cc-sidebar {
    position: static;
  }

  .cc-hero-premium-content {
    flex-direction: column;
    text-align: center;
  }

  .cc-hero-massive-left,
  .cc-hero-massive-right {
    font-size: 20vw;
  }

  .cc-hero-center-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: center;
  }

  .cc-hero-vertical-text {
    border-left: none;
    border-top: 4px solid var(--cc-primary);
    padding-left: 0;
    padding-top: 1rem;
  }

  .cc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .cc-header {
    position: relative;
  }

  .cc-header-inner {
    grid-template-columns: 1fr auto;
  }

  .cc-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .cc-cart-icon {
    display: none;
  }

  .cc-mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--cc-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .cc-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cc-bg-surface);
    border-bottom: 1px solid var(--cc-border);
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--cc-shadow);
    z-index: 50;
  }

  .cc-nav.is-active {
    display: flex;
  }

  .cc-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .cc-nav ul li {
    width: 100%;
    text-align: center;
  }

  .cc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cc-stat-card {
    aspect-ratio: 1 / 1;
    padding: 1rem;
    border-radius: 0.75rem;
    min-height: unset;
    height: unset;
  }

  .cc-stat-number {
    font-size: 2.25rem;
  }

  .cc-hero-premium {
    min-height: unset;
    height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .cc-hero-premium-content {
    gap: 0.75rem;
  }

  .cc-hero-massive-left,
  .cc-hero-massive-right {
    font-size: 15vw;
    letter-spacing: -0.03em;
  }

  .cc-hero-top-text {
    gap: 0.25rem;
  }

  .cc-hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cc-hero-center-box {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .cc-hero-link {
    font-size: 0.9rem;
  }

  .cc-hero-vertical-text {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
  }

  .cc-hero-vertical-text span {
    font-size: 0.85rem;
  }

  .cc-logo-flex {
    justify-content: center;
  }

  .cc-contact-card {
    padding: 1.5rem;
  }

  table,
  .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cc-content img,
  .wp-block-image img {
    max-width: 100%;
    height: auto;
  }

  .cc-page-header,
  .cc-single-header {
    padding: 2rem 0 !important;
  }

  .cc-page-title,
  .cc-single-title {
    font-size: 2rem !important;
  }
}