/* Add/Update in styles.css */

/* Domain For Sale Banner */
.sale-banner {
    background: linear-gradient(90deg, #ff9900 0%, #ffc107 100%);
    color: #000;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 2000; /* Above nav */
    border-bottom: 2px solid #e08e00;
}
.sale-banner a {
    color: #000;
    text-decoration: underline;
    margin-left: 10px;
}
.sale-banner a:hover {
    color: #fff;
}

/* Adjust nav to stick below the banner */
nav {
    top: 0; /* JS would usually handle offset, but CSS sticky works if banner scrolls or is fixed.
               For simplicity, we let the banner scroll away or sit above sticky nav. */
    position: sticky;
}

/* 2026 UI Tweaks */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.alert {
    background: #e7f3fe;
    border-left: 6px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
}


/* styles.css */
:root {
    --primary: #0056b3; /* Tech Blue */
    --accent: #ff9900; /* Mikrotik/OpenWrt vibes */
    --bg: #f4f6f8;
    --text: #333;
    --card-bg: #ffffff;
    --nav-bg: #222;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: var(--nav-bg);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { font-weight: bold; font-size: 1.5rem; color: #fff; text-decoration: none; }
.menu a { color: #ccc; text-decoration: none; margin-left: 20px; font-size: 0.9rem; transition: color 0.3s;}
.menu a:hover { color: #fff; }

/* Hero / Header */
header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column;}
.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 8px;
}
.card-title { font-size: 1.2rem; margin: 0 0 10px 0; font-weight: 700; }
.card-title a { text-decoration: none; color: var(--text); }
.card-excerpt { font-size: 0.9rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.meta { font-size: 0.8rem; color: #999; border-top: 1px solid #eee; padding-top: 10px;}

/* Article Detail Styles */
.article-content { background: white; padding: 40px; border-radius: 8px; margin-top: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.article-content h1 { margin-top: 0; }
pre { background: #2d2d2d; color: #f8f8f2; padding: 15px; overflow-x: auto; border-radius: 4px; }
code { font-family: "Consolas", "Monaco", monospace; }
.cmd { color: #a6e22e; } /* Green for commands */

/* Footer */
footer { background: #222; color: #777; padding: 40px 0; text-align: center; font-size: 0.9rem; margin-top: 50px;}

/* Utility */
.btn { display: inline-block; padding: 8px 16px; background: var(--primary); color: white; border-radius: 4px; text-decoration: none; font-size: 0.9rem;}
.btn:hover { background: #004494; }