/* Self-Hosted Fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lora-v37-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lato-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/roboto-mono-v31-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/orbitron-v35-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Georgia'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/georgia-regular.woff2') format('woff2'); }

/* Core Styles */
:root { --menu-width: 200px; --accent-color: #00C9FF; --bg-main: #1a202c; --bg-article: #1f2937; --border-color: #4a5568; --text-color: #e2e8f0; --text-muted: #a0aec0; --code-bg: #2d3748; }
html { height: 100%; width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3e%3crect width='10' height='10' fill='%231a202c'/%3e%3cpath d='M0 0L10 10M10 0L0 10' stroke='%232d3748' stroke-width='0.2'/%3e%3c/svg%3e"); background-repeat: repeat; min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; color: var(--text-color); display: flex; flex-direction: row; }

/* Left Menu & Mobile Header */
.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.9); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); padding: 0 20px; box-sizing: border-box; z-index: 1001; font-family: 'Orbitron', sans-serif; font-weight: 600; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-size: 24px; font-weight: normal; color: #00C9FF; text-decoration: none; text-shadow: 0 0 2px #00C9FF, 0 0 3px rgba(0, 201, 255, 0.6); display: block; padding: 8px 0; transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; }
.left-menu a:hover, .left-menu a:focus  { color: #fff; text-shadow: 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, 0.5); outline: none; }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.1); border-radius: 5px; padding-left: 10px; padding-right: 10px; }
.mobile-header, .menu-overlay { display: none; }

/* Main Content & Article Styles */
.main-content-wrapper { flex-grow: 1; padding-left: calc(var(--menu-width) + 40px); padding-top: 40px; padding-right: 40px; padding-bottom: 40px; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; width: calc(100% - var(--menu-width)); }
.article-container { max-width: 900px; width: 100%; margin: 0 auto; }
.breadcrumbs { margin-bottom: 2rem; }
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '>'; margin: 0 0.75rem; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-color); }
.article-header { border-bottom: 1px solid var(--border-color); margin-bottom: 2.5rem; padding-bottom: 1.5rem; }
.article-header h1 { font-family: 'Orbitron', sans-serif; font-size: 2.8rem; color: var(--accent-color); text-shadow: 0 0 5px var(--accent-color), 0 0 10px rgba(0, 201, 255, 0.4); line-height: 1.2; margin: 0 0 1rem 0; }
.article-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: 0.9rem; }
article { font-size: 1.1rem; line-height: 1.8; }
article h2 { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--accent-color); border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 3rem; margin-bottom: 1.5rem; }
article h3 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: #fff; margin-top: 2.5rem; margin-bottom: 1rem; }
article p, article li, article ol { margin-bottom: 1.5rem; }
article a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
article a:hover { text-decoration: underline; }
article strong { color: #fff; font-weight: 700; }
article ul, article ol { padding-left: 25px; }
article li { margin-bottom: 1rem; }
pre { background-color: var(--code-bg); padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color); overflow-x: auto; font-family: 'Roboto Mono', 'Courier New', Courier, monospace; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
code { background-color: var(--code-bg); padding: 0.2em 0.4em; border-radius: 4px; font-family: 'Roboto Mono', 'Courier New', Courier, monospace; font-size: 0.9em; }
pre code { background: none; padding: 0; font-size: 1em; }
.back-to-blog { display: inline-block; margin-top: 3rem; font-weight: bold; }

/* Article-Specific Components */
.article-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--border-color); }
.social-share { display: flex; align-items: center; gap: 15px; min-height: 24px; }
.social-share a { color: var(--text-muted); text-decoration: none; transition: color 0.2s, transform 0.2s; }
.social-share a:hover { color: var(--accent-color); transform: scale(1.1); }
.social-share svg { width: 20px; height: 20px; fill: currentColor; }
blockquote { background-color: var(--bg-article); border-left: 5px solid var(--accent-color); margin: 2rem 0; padding: 1.5rem 2rem; font-size: 1.4rem; font-family: 'Georgia', serif; font-style: italic; color: #fff; position: relative; }
blockquote .author { display: block; text-align: right; margin-top: 1rem; font-family: 'Inter', sans-serif; font-size: 1rem; font-style: normal; color: var(--text-muted); }
.info-box, .warning-box { margin: 2rem 0; padding: 1rem 1.5rem; border-radius: 0 8px 8px 0; }
.info-box { background-color: var(--bg-article); border-left: 4px solid var(--accent-color); }
.warning-box { background-color: #4a2525; border-left: 4px solid #e53e3e; }
.info-box h4 { margin: 0 0 0.5rem; font-family: 'Orbitron'; }
.info-box p { font-size: 1rem; line-height: 1.7; }
.info-box p:last-child { margin-bottom: 0; }
.goal-box { border: 1px dashed var(--accent-color); padding: 1rem; border-radius: 8px; text-align: center; font-weight: 600; margin-top: 1rem; background-color: var(--bg-article); }
.quick-wins { border: 1px solid var(--accent-color); padding: 0.5rem 1.5rem 0 1.5rem; border-radius: 8px; margin-bottom: 3rem; background: var(--bg-article); }
.analogy { font-style: italic; color: var(--text-muted); }
.diagram { background-color: var(--bg-article); padding: 1.5rem; border-radius: 8px; margin: 2rem 0; border: 1px solid var(--border-color); font-family: 'Roboto Mono', monospace; font-size: 0.95rem; text-align: center; }
.diagram-title { font-family: 'Orbitron', sans-serif; margin-top: 0; margin-bottom: 1.5rem; font-size: 1.2rem; }
.flow { display: flex; justify-content: space-between; align-items: center; }
.entity { text-align: center; }
.entity svg { width: 3rem; height: 3rem; color: var(--text-color); }
.arrow { flex-grow: 1; text-align: center; position: relative; margin: 0 1rem; }
.arrow-line { content: ''; width: 100%; height: 2px; background: var(--border-color); display: block; }
.arrow-line::after { content: '▶'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--border-color); }
.arrow-label { position: absolute; top: -1.2em; left: 50%; transform: translateX(-50%); background: var(--bg-article); padding: 0 0.5em; color: var(--text-muted); white-space: nowrap; }
.arrow-label.bottom { top: auto; bottom: -1.2em; }
.arrow.reverse .arrow-line::after { content: '◀'; left: -8px; right: auto; }
table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; font-size: 1rem; }
th, td { padding: 0.8rem 1rem; border: 1px solid var(--border-color); text-align: left; }
th { background-color: var(--code-bg); font-family: 'Orbitron', sans-serif; }
tbody tr:nth-child(odd) { background-color: var(--bg-article); }
.winner, .rating-good, .growth { color: #48bb78; font-weight: bold; }
.rating-ok { color: #facc15; }
.rating-fair { color: #f97316; }
.chart-container { background-color: var(--bg-article); padding: 1.5rem; border-radius: 8px; margin: 2rem 0; border: 1px solid var(--border-color); }
.chart-title { text-align: center; font-family: 'Orbitron', sans-serif; margin-top: 0; margin-bottom: 1.5rem; font-size: 1.2rem; }
.bar-chart { display: flex; justify-content: space-around; align-items: flex-end; height: 250px; border-left: 1px solid var(--text-muted); border-bottom: 1px solid var(--text-muted); padding-left: 1rem; }
.bar { width: 50px; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-value { font-weight: bold; color: #fff; font-size: 0.9rem; }
.bar-fill { background-color: var(--accent-color); transition: height 0.5s ease-out; }
.bar-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Accent Color Classes */
body.accent-light-green { --accent-color: #10B981; }
body.accent-green { --accent-color: #48bb78; }
body.accent-dark-green { --accent-color: #2f855a; }
body.accent-blue { --accent-color: #3B82F6; }
body.accent-dark-blue { --accent-color: #1d4ed8; }
body.accent-sky-blue { --accent-color: #0ea5e9; }
body.accent-purple { --accent-color: #8B5CF6; }
body.accent-orange { --accent-color: #f97316; }
body.accent-aws-orange { --accent-color: #FF9900; }
body.accent-yellow { --accent-color: #FBBF24; }
body.accent-red { --accent-color: #e53e3e; }
body.accent-dns { --accent-color: #007bff; }

/* Responsive Styles */
@media (max-width: 992px) {
    :root { --menu-width: 250px; }
    body { flex-direction: column; }
    body.menu-open { overflow: hidden; }
    .main-content-wrapper { padding: 80px 20px 40px; width: 100%; box-sizing: border-box; margin-left: 0; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; background-color: #1a202c; border-bottom: 1px solid #4a5568; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; cursor: pointer; z-index: 1002; }
    .hamburger-btn .line { display: block; width: 24px; height: 3px; background-color: #e2e8f0; margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
    .mobile-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--accent-color); }
    .left-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; height: 100vh; width: var(--menu-width); min-width: var(--menu-width); }
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    .article-header h1 { font-size: 2.2rem; }
    .article-meta { flex-direction: column; align-items: flex-start; gap: 1rem;}
}