/*
Theme Name: Brian Portfolio Theme
Author: Brian D'Aurio
Description: Custom single-page portfolio and blog theme tailored for SEO and Growth Marketing.
Version: 1.0
*/

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(148, 163, 184, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-secondary: #818cf8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background-color: var(--bg-primary); color: var(--text-main); line-height: 1.6; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(15, 23, 42, 0.85); border-bottom: 1px solid var(--border-color); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-logo { font-family: 'Bebas Neue'; font-weight: 400; font-size: 2.9rem; letter-spacing: -0.02em; color: var(--text-main); text-decoration: none; padding-top: 6px; }
.brand-logo span { color: var(--accent); }
#title-apos { margin-right: -2px; }
nav ul { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
nav a:hover { color: var(--accent); }
.hero { padding: 90px 0 60px; }
.hero-badge-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge { display: inline-block; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.25); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; font-weight: 800; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; margin-bottom: 9px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background: var(--accent); color: #04101e; border: none; }
.btn-primary:hover { background: #7dd3fc; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { background: var(--bg-secondary); border-color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0 80px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; text-align: center; backdrop-filter: blur(8px); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }
section { padding: 60px 0; border-top: 1px solid var(--border-color); }
.section-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 36px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex-grow: 1; height: 1px; background: var(--border-color); margin-left: 12px; }
.timeline { display: flex; flex-direction: column; gap: 32px; position: relative; }
.experience-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; position: relative; transition: transform 0.2s ease, border-color 0.2s ease; }
.experience-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.4); }
.role-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.company-name { font-size: 1.3rem; font-weight: 700; color: var(--text-main); }
.company-location { font-size: 0.85rem; color: var(--text-dim); margin-left: 8px; font-weight: 400; }
.date-badge { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.sub-role { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-color); }
.sub-role-title { font-size: 1.05rem; font-weight: 600; color: #e2e8f0; }
.experience-card ul { margin: 12px 0 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.experience-card li { margin-bottom: 8px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.skill-category { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.skill-category h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.chip-container { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: #cbd5e1; }
.education-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.education-card h3 { font-size: 1.15rem; color: var(--text-main); margin-bottom: 4px; }
.education-card p { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
footer { margin-top: auto; border-top: 1px solid var(--border-color); padding: 36px 0; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* Feed styling */
img.wp-post-image { max-width: 100%; width: 300px; height: auto; }
div.post-img { float: left; max-width: 25%; }
div.post-details { float: left; max-width: 71%; margin: 0 2%; }
.date-badge { width:100%; }
.post-preview {   display: flex; align-items: center; justify-content: center; height: 340px; padding: 30px;  }
body.category { background: rgba(15, 23, 42, 0.85);}
body.tag { background: rgba(15, 23, 42, 0.85);}

/* Post styling */
.wp-block-image { margin: 32px 3px 24px; }
.wp-element-caption { text-align: center; }
img.size-full { min-width: 100%; max-height: 600px; object-fit: cover; }
.post-author { color: var(--text-dim); font-size: 0.85rem; width:100%; }
.role-header { gap: 3px; margin: 16px 0 0; padding-left: 3px; }
section.hero { padding: 30px 0 15px; border-top: none;}
.date-badge { font-style: italic; }
section.post-img-full { padding: 30px 0; }
.post-category-card { padding: 6px 8px; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.65px; border-radius: 3px; text-decoration: none; color: #FFFFFF; }
.list-category-card { padding: 3px 6px; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.65px; border-radius: 3px; text-decoration: none; color: #FFFFFF; width: fit-content; }
.search-optimization { background: #bb99ff; }
.archive { background: #75a3a3; }

/* WP Specific Additions */
article.experience-card { margin-bottom: 30px; }
.post-content h2, .post-content h3 { color: var(--text-main); margin: 24px 0 16px; }
.post-content p { margin-bottom: 16px; }
.post-content a { color: var(--accent); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { border: 1px solid var(--border-color); text-align: center; background: var(--bg-secondary); padding: 5px; margin-bottom: 16px; }
.screen-reader-text { display: none; }

@media (max-width: 768px) {
  .nav-wrapper { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  .role-header { flex-direction: column; }
  .date-badge { margin-top: 4px; }
}

@media (max-width: 660px) {
  .brand-logo {line-height: 40px; font-size: 3.5rem; }
}