/* -----------------------------------------
   CloakTools Brand Style
   Colors, typography, layout, components
------------------------------------------ */

:root {
    /* Brand colors */
    --bg: #0f1117;              /* Night Void */
    --card: #1a1d24;            /* Dark Slate */
    --surface: #11131a;         /* Subtle surface for highlights */

    /* Text */
    --text: #e5e7eb;
    --text-muted: #9ca3af;

    /* Accents */
    --accent: #3b82f6;          /* Cloak Blue */
    --accent-hover: #2563eb;

    /* Utility */
    --radius-card: 16px;
    --radius-btn: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.45);
}

/* -----------------------------------------
   Global Reset + Typography
------------------------------------------ */

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

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

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

/* -----------------------------------------
   Header
------------------------------------------ */

.header {
    width: 100%;
    max-width: 1100px;
    padding: 22px 20px;
}

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

.logo {
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

nav a {
    color: var(--text-muted);
    margin-left: 28px;
    font-size: 16px;
}

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

/* -----------------------------------------
   Layout
------------------------------------------ */

.main {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* -----------------------------------------
   Home Page (IP Tool)
------------------------------------------ */

.card {
    background: var(--card);
    padding: 40px 45px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    text-align: center;
}

h1 {
    font-size: 30px;
    margin-bottom: 22px;
}

.ip-box {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 28px;
}

.info-table {
    width: 100%;
    margin-top: 20px;
}

.info-table td {
    padding: 10px 0;
    font-size: 16px;
}

.label {
    color: var(--text-muted);
    text-align: left;
}

.value {
    text-align: right;
}

.btn {
    display: inline-block;
    margin-top: 35px;
    padding: 15px 22px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-btn);
    font-size: 17px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
}

/* -----------------------------------------
   Footer
------------------------------------------ */

.footer-links {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 6px;
}

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

/* -----------------------------------------
   Articles (Layout)
------------------------------------------ */

.article-container {
    max-width: 780px;
    margin: 50px auto;
    padding: 0 20px;
}

.article-card {
    background: var(--card);
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

.article-card h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-card h2 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 24px;
}

.article-card p {
    margin-bottom: 18px;
}

.article-card ul,
.article-card ol {
    margin-left: 22px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-card li {
    margin-bottom: 6px;
}

/* -----------------------------------------
   Article List Page
------------------------------------------ */

.article-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.article-item {
    margin-bottom: 20px;
}

.article-item a {
    font-size: 19px;
    font-weight: 500;
}

.article-item a:hover {
    text-decoration: underline;
}
