/*
Theme Name: KR0311 Theme
Theme URI: https://kr0311.com
Author: KR0311
Description: Custom KR0311 Blog Theme
Version: 1.0
Template: hello-elementor
*/

:root {
    --bg-main: #090b11;
    --bg-alt: #10141d;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(242, 204, 110, 0.22);
    --gold: #f2cc6e;
    --gold-strong: #ffcf5a;
    --text: #f5f5f7;
    --muted: #aeb5c2;
    --shadow-soft: 0 0 28px rgba(242, 204, 110, 0.08);
    --shadow-strong: 0 10px 35px rgba(0, 0, 0, 0.28);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top center, rgba(242, 204, 110, 0.08), transparent 30%),
        linear-gradient(180deg, #090b11 0%, #0d1118 40%, #090b11 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 14s ease-in-out infinite;
}

.orb-1 {
    top: -80px;
    left: -100px;
    background: radial-gradient(circle, rgba(242, 204, 110, 0.18) 0%, rgba(242, 204, 110, 0.05) 40%, transparent 72%);
}

.orb-2 {
    right: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(242, 204, 110, 0.16) 0%, rgba(242, 204, 110, 0.04) 40%, transparent 72%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(18px, 20px);
    }
}

.topbar,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    background: rgba(9, 11, 17, 0.82);
    border-bottom: 1px solid rgba(242, 204, 110, 0.14);
    z-index: 20;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(242, 204, 110, 0.14));
}

.top-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav a,
.top-nav a:visited,
.top-nav a:active,
.top-nav a:focus {
    color: var(--text);
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(242, 204, 110, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: 0.22s ease;
    font-weight: 600;
}

.top-nav a:hover {
    color: var(--text);
    border-color: rgba(242, 204, 110, 0.38);
    box-shadow: 0 0 18px rgba(242, 204, 110, 0.10);
    transform: translateY(-1px);
}

.section {
    padding: 28px 0;
    position: relative;
    z-index: 1;
}

.section-heading {
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
}

.blog-hub {
    padding-top: 44px;
}

.blog-page-title {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #e6e9ef;
    font-weight: 700;
}

.blog-page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.6;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--text);
    font-weight: 650;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 860px;
    line-height: 1.7;
}

.project-category-grid,
.latest-posts-grid {
    margin-top: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.glass-card {
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022)),
        rgba(14, 17, 26, 0.86);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.glass-card:hover {
    border-color: rgba(242, 204, 110, 0.32);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        0 0 16px rgba(242, 204, 110, 0.08);
}

.card-icon {
    margin: 0 0 20px;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    padding: 0;
}

.card-icon-image {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
    padding: 0;
}

.card-icon-image::before,
.card-icon-image::after {
    content: none !important;
    display: none !important;
}

.card-icon-image img {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0.95;
    filter: brightness(0.9) saturate(0.92) drop-shadow(0 0 8px rgba(242, 204, 110, 0.14));
    transition: filter 0.24s ease, opacity 0.24s ease;
}

.glass-card:hover .card-icon-image img {
    transform: none !important;
    filter: brightness(0.98) saturate(0.98) drop-shadow(0 0 10px rgba(242, 204, 110, 0.18));
    opacity: 1;
}

.glass-card h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--text);
    font-weight: 600;
}

.glass-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.68;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.post-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--gold);
    border: 1px solid rgba(242, 204, 110, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.post-date {
    font-size: 0.88rem;
    color: var(--muted);
}

.latest-updates-section {
    padding-top: 8px;
}

.card-link,
.card-link:visited,
.card-link:focus,
.card-link:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 700;
    transition: 0.2s ease;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card-link:hover {
    color: #ffffff;
}

.card-link:hover::after {
    transform: translateX(4px);
}

.site-footer {
    padding: 28px 0 36px;
    border-top: 1px solid rgba(242, 204, 110, 0.10);
    margin-top: 20px;
    background: rgba(9, 11, 17, 0.6);
    backdrop-filter: blur(10px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-inner strong {
    color: var(--text);
}

.footer-sep {
    margin: 0 8px;
    color: rgba(242, 204, 110, 0.5);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links a:visited {
    color: var(--muted);
}

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

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        height: 42px;
    }

    .top-nav,
    .footer-links {
        width: 100%;
    }

    .top-nav a {
        width: 100%;
        justify-content: center;
    }

    .blog-page-title {
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .section-heading h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .glass-card h3 {
        font-size: 1.3rem;
    }

    .card-icon,
    .card-icon-image img {
        width: 72px;
        height: 72px;
    }
}