/* FlingBase Premium UI - Ultra Modern Dark Tech */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Outfit:wght@500;700;900&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: #121214;
    --bg-card-hover: #18181b;
    --primary: #ff5722;
    --primary-glow: rgba(255, 87, 34, 0.4);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 87, 34, 0.3);
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --text-heading: #f9fafb;
    --glass-bg: rgba(9, 9, 11, 0.75);
}

body, .site, .generate-columns-container {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .entry-title a {
    color: var(--text-heading) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Container Width Override */
.grid-container {
    max-width: 1300px !important;
}

@media (min-width: 1025px) {
    .is-right-sidebar .content-area {
        width: 78% !important;
    }
    .is-right-sidebar .sidebar {
        width: 22% !important;
    }
}

/* Glassmorphism Header */
.site-header {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-navigation {
    background: transparent !important;
}
.main-navigation .main-nav ul li a {
    color: var(--text-heading) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.main-navigation .main-nav ul li a:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Grid Layout for Homepage / Archives ONLY */
.blog .site-main, .archive .site-main, .search .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.blog .site-main > article, .archive .site-main > article, .search .site-main > article {
    margin: 0 !important;
    width: 100% !important;
}
.blog .site-main > header, .blog .site-main > nav,
.archive .site-main > header, .archive .site-main > nav,
.search .site-main > header, .search .site-main > nav {
    grid-column: 1 / -1;
}

/* Single Post & Page Specific Layout */
.single .site-main, .page .site-main {
    display: block !important;
}

/* Premium Card Style for Posts / Archive */
.inside-article {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0f) !important;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 24px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.generate-columns .inside-article {
    padding: 25px !important;
}

.post-image img {
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.inside-article:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.inside-article:hover .post-image img {
    transform: scale(1.03);
}

/* 🚀 ULTRA MODERN SIDEBAR WIDGETS */
.sidebar .widget {
    background: linear-gradient(180deg, var(--bg-card), #0a0a0c) !important;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* Subtle glow behind widgets */
.sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.sidebar .widget:hover {
    border-color: rgba(255, 87, 34, 0.2);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.sidebar .widget-title {
    color: var(--text-heading) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.sidebar .widget-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--border-light);
    margin-left: 15px;
}

/* Modern Widget Lists */
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.2s ease, padding-left 0.2s ease;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.sidebar .widget ul li:hover {
    transform: translateX(5px);
    padding-left: 5px;
}

.sidebar .widget ul li:hover a {
    color: var(--primary);
}

/* Global Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff8a65;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Content Elements Styling */
.entry-content h2, .entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    position: relative;
    padding-bottom: 10px;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* Footer styling */
.site-info {
    background: #050506 !important;
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}
