/* =========================================================
   FUTURE THEME - MODERN DARK UI
   Grav CMS / Future Imperfect
   custom.css
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    /* Brand Colors */
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;

    --color-secondary: #8b5cf6;
    --color-accent: #22d3ee;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Backgrounds */
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #162033;
    --bg-header: rgba(15, 23, 42, 0.75);
    --bg-sidebar: #0b1220;
    --bg-footer: #020617;
    --bg-code: #111827;

    /* Text */
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.15);

    /* Effects */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.25);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s ease;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.15), transparent 25%),
        radial-gradient(circle at bottom right, rgba(139,92,246,0.12), transparent 25%),
        var(--bg-body);

    color: var(--text-main);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.75;

    overflow-x: hidden;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

    color: white;

    font-weight: 700;

    letter-spacing: -0.02em;

    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    color: var(--text-secondary);
}

strong {
    color: white;
}

small {
    color: var(--text-muted);
}


/* =========================================================
   LINKS
========================================================= */

a {

    color: var(--color-accent);

    text-decoration: none;

    transition: var(--transition);
}

a:hover {

    color: white;

    text-shadow: 0 0 12px rgba(34,211,238,0.5);
}


/* =========================================================
   HEADER
========================================================= */

#header {

    background: var(--bg-header);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border-color);

    box-shadow: var(--shadow-sm);
}

#header h1,
#header h2,
#header a {
    color: white;
}

#header nav a:hover {
    color: var(--color-accent);
}


/* =========================================================
   MENU
========================================================= */

#menu {

    background: rgba(2,6,23,0.95);

    backdrop-filter: blur(20px);

    border-left: 1px solid var(--border-color);
}

#menu ul li {

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#menu a {

    color: var(--text-secondary);

    font-weight: 500;
}

#menu a:hover {

    color: white;

    padding-left: 8px;
}


/* =========================================================
   POSTS / CARDS
========================================================= */

.post,
.mini-post,
article {

    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.95),
        rgba(15,23,42,0.85)
    );

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);

    overflow: hidden;

    transition: var(--transition);

    margin-bottom: 2rem;
}

.post:hover,
.mini-post:hover,
article:hover {

    transform: translateY(-6px);

    background: var(--bg-card-hover);

    box-shadow: var(--shadow-lg);
}

.post header {

    border-bottom: 1px solid var(--border-color);

    padding-bottom: 1rem;
}


/* =========================================================
   BUTTONS
========================================================= */

.button,
button,
input[type="submit"],
input[type="button"] {

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );

    color: white;

    border: none !important;

    border-radius: var(--radius-sm);

    padding: 0.85rem 1.5rem;

    font-weight: 600;

    letter-spacing: 0.02em;

    box-shadow: 0 6px 20px rgba(59,130,246,0.3);

    transition: var(--transition);
}

.button:hover,
button:hover,
input[type="submit"]:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(59,130,246,0.45);

    background:
        linear-gradient(
            135deg,
            var(--color-primary-hover),
            var(--color-secondary)
        );
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar,
#sidebar {

    background: transparent;
}

.sidebar section,
#sidebar section {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    padding: 1.5rem;

    margin-bottom: 2rem;

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   FORMS
========================================================= */

input,
textarea,
select {

    background: rgba(15,23,42,0.85) !important;

    border: 1px solid var(--border-color) !important;

    border-radius: var(--radius-sm) !important;

    color: white !important;

    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {

    border-color: var(--color-primary) !important;

    box-shadow:
        0 0 0 4px rgba(59,130,246,0.15);

    outline: none;
}


/* =========================================================
   CODE BLOCKS
========================================================= */

pre,
code {

    background: var(--bg-code);

    border-radius: var(--radius-sm);

    color: #93c5fd;
}

pre {

    padding: 1.25rem;

    overflow-x: auto;

    border: 1px solid var(--border-color);
}


/* =========================================================
   IMAGES
========================================================= */

img {

    border-radius: var(--radius-md);

    transition: var(--transition);
}

img:hover {

    transform: scale(1.01);
}


/* =========================================================
   BLOCKQUOTES
========================================================= */

blockquote {

    background: rgba(59,130,246,0.08);

    border-left: 4px solid var(--color-primary);

    padding: 1.5rem;

    border-radius: var(--radius-sm);

    color: var(--text-secondary);
}


/* =========================================================
   TABLES
========================================================= */

table {

    width: 100%;

    border-collapse: collapse;

    background: var(--bg-card);

    border-radius: var(--radius-md);

    overflow: hidden;
}

table th {

    background: rgba(59,130,246,0.12);

    color: white;
}

table th,
table td {

    padding: 1rem;

    border-bottom: 1px solid var(--border-color);
}


/* =========================================================
   FOOTER
========================================================= */

#footer {

    background: var(--bg-footer);

    border-top: 1px solid var(--border-color);

    color: var(--text-muted);

    padding-top: 4rem;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination a {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    padding: 0.75rem 1rem;
}

.pagination a:hover {

    background: var(--color-primary);

    color: white;
}


/* =========================================================
   TAGS / CATEGORIES
========================================================= */

.tag,
.category,
.label {

    display: inline-block;

    background: rgba(34,211,238,0.1);

    color: var(--color-accent);

    border: 1px solid rgba(34,211,238,0.2);

    border-radius: 999px;

    padding: 0.35rem 0.85rem;

    font-size: 0.85rem;

    font-weight: 600;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            var(--color-primary),
            var(--color-secondary)
        );

    border-radius: 999px;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background: var(--color-primary);

    color: white;
}


/* =========================================================
   ANIMATIONS
========================================================= */

.fade-in {

    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 980px) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .post,
    article {

        padding: 1.25rem;
    }
}


@media screen and (max-width: 736px) {

    body {
        font-size: 15px;
    }

    .button,
    button {

        width: 100%;
    }
}


/* *****************************************************************************
    MY CSS
************************************************************************* */

.heading {
    background-color: #2f3d7a;
}

.post > header .meta .published {
  color: white;
}

#footer .copyright {
   color: white;
}

#sidebar .blurb a img {
    width: 100%;
}