/*
Theme Name: TCT Light Blog
Description: A super lightweight custom theme for TCT Blog
Author: Antigravity
Version: 1.0
*/

/* Reset & Basic Setup */
:root {
  --primary-color: #007AFF; /* TCT Blue */
  --text-color: #E5E5EA;
  --bg-color: #0A0A12;
  --header-bg: #0A0A12;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-color); background: var(--bg-color); line-height: 1.6; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--header-bg); padding: 15px 0; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-title { font-size: 24px; font-weight: bold; }
.site-title a { color: #333; }

/* Navigation */
.main-nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.main-nav a { 
  font-weight: 600; 
  color: #333; 
  text-transform: uppercase; 
  font-size: 15px; 
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--primary-color); text-decoration: none; }
.main-nav a:hover::after { width: 100%; }
.main-nav li.current-menu-item a { color: var(--primary-color); }
.main-nav li.current-menu-item a::after { width: 100%; }

/* Main Content */
.site-content { padding: 40px 15px; display: flex; gap: 30px; flex-wrap: wrap; }
.main-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; }

/* Posts */
.post { background: var(--card-bg); padding: 20px; border-radius: 16px; margin-bottom: 30px; border: 1px solid var(--card-border); transition: background 0.25s ease, border-color 0.25s ease; }
.post:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.post-title { font-size: 22px; margin-bottom: 10px; font-weight: 600; }
.post-title a { color: #fff; }
.post-meta { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-bottom: 15px; }
.post-thumbnail { margin-bottom: 15px; }
.post-thumbnail img { max-width: 100%; height: auto; border-radius: 12px; }
.post-content img, .post-content iframe, .post-content video { max-width: 100%; height: auto; border-radius: 8px; }
.read-more { display: inline-flex; margin-top: 15px; padding: 10px 24px; background: var(--primary-color); color: #fff; border-radius: 12px; font-size: 14px; font-weight: 500; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35); }
.read-more:hover { text-decoration: none; transform: scale(1.02); box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45); color: #fff; }

/* Dynamic Menu from WordPress */
.dynamic-menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dynamic-menu li { margin: 0; padding: 0; }
.dynamic-menu li a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    text-transform: none;
}
.dynamic-menu li a::after { display: none; }
.dynamic-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}
.dynamic-menu li.current-menu-item a {
    background: #007AFF;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); color: rgba(255, 255, 255, 0.4); padding: 40px 0; text-align: center; margin-top: 40px; }
.site-footer a { color: #fff; }

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .site-content { padding: 12px 12px; gap: 16px; flex-direction: column; }
  .main-area { width: 100%; min-width: 0; }
  .sidebar { width: 100%; }
  .post { padding: 16px 16px; margin-bottom: 16px; word-wrap: break-word; overflow-wrap: break-word; }
  .post-title { font-size: 20px; }
  .post-content { word-wrap: break-word; overflow-wrap: break-word; }
}

@media (max-width: 480px) {
  .post-title { font-size: 18px; }
  .read-more { width: 100%; justify-content: center; text-align: center; }
}
