/* ============================================================
   GERARD BRAAD - UNIFIED THEME
   Orange (#ff8c00) and Blue (#0f93f9) color scheme
   ============================================================ */

/* CSS Variables */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --accent-orange: #ff8c00;
    --accent-blue: #0f93f9;
    --accent-orange-dim: #cc7000;
    --accent-blue-dim: #0c76c7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --border: #d0d0d0;
    --shadow-orange: rgba(255, 140, 0, 0.15);
    --shadow-blue: rgba(15, 147, 249, 0.15);
}

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

/* Body */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Top Banner */
.top-banner {
    background: var(--accent-blue);
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
    line-height: 1;
}

.back-button:hover {
    transform: translateX(-3px);
    color: var(--accent-orange);
}

.banner-title {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-logo {
    height: 32px;
    width: auto;
}

.banner-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.banner-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.banner-nav a:hover {
    color: var(--accent-orange);
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-wide {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1 {
    font-size: 2.5em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin-top: 30px;
}

h3 {
    font-size: 1.5em;
    color: var(--accent-orange);
    margin-bottom: 10px;
    margin-top: 20px;
}

h4 {
    font-size: 1.2em;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-orange);
}

/* Launcher Grid (Homepage style) */
.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.launcher-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.launcher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.launcher-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px var(--shadow-orange);
    transform: translateY(-5px);
}

.launcher-card:hover::before {
    opacity: 0.1;
}

.launcher-card-content {
    position: relative;
    z-index: 1;
}

.launcher-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    font-size: 3em;
    line-height: 80px;
}

.launcher-title {
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.launcher-card:hover .launcher-title {
    color: var(--accent-orange);
}

/* Specific brand colors for launcher cards */
.launcher-card[href*="github.com"]:hover {
    border-color: #000000;
}

.launcher-card[href*="github.com"]:hover .launcher-title {
    color: #000000;
}

.launcher-card[href*="github.com"]:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.launcher-card[href*="gitlab.com"]:hover {
    border-color: var(--accent-orange);
}

.launcher-card[href*="gitlab.com"]:hover .launcher-title {
    color: var(--accent-orange);
}

.launcher-card[href*="gitlab.com"]:hover {
    box-shadow: 0 0 30px var(--shadow-orange);
}

.launcher-description {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 30px;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--shadow-blue);
}

.blog-post-title {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.blog-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: var(--accent-orange);
}

.blog-post-meta {
    color: var(--text-tertiary);
    font-size: 0.85em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-meta a {
    color: var(--accent-blue);
}

.blog-post-summary {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Single Post */
.post-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.post-title {
    font-size: 2.5em;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.post-meta {
    color: var(--text-tertiary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--accent-orange);
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.85em;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.pagination .current {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent-blue);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: var(--bg-secondary);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 20px 0;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5em;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-blue);
}

/* Specific brand colors */
.social-links a[href*="github.com"] {
    color: #000000;
}

.social-links a[href*="github.com"]:hover {
    color: #333333;
}

.social-links a[href*="gitlab.com"] {
    color: var(--accent-orange);
}

.social-links a[href*="gitlab.com"]:hover {
    color: var(--accent-orange-dim);
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.85em;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    .container,
    .container-wide {
        padding: 20px 15px;
    }

    .launcher-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .launcher-card {
        padding: 30px 20px;
    }

    .top-banner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .banner-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .blog-post-card {
        padding: 20px;
    }

    .post-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 15px 10px;
    }

    .banner-title {
        font-size: 0.9em;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
