/*
Theme Name: FlatNoodle
Author: The Flat Noodle
Description: Retro gaming theme with animated Bliss background
Version: 1.8
*/

@font-face {
    font-family: 'PixelOperator';
    src: url('fonts/PixelOperatorHB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: 'PixelOperator', sans-serif;
    font-size: 1.15em;
    color: #e0e0e0;
    overflow-x: hidden;
    background: #000;
}

a {
    color: #d891ef;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ff25c1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animated Background */

.stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bliss {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('img/windows_xp_bliss.jpg');
    background-size: cover;
    background-position: center;
    animation: driftZoom 40s ease-in-out infinite;
    will-change: transform;
}

.light-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.06) 45%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 55%,
        rgba(255,255,255,0) 100%
    );
    background-size: 300% 300%;
    mix-blend-mode: soft-light;
    animation: sweep 22s ease-in-out infinite;
    pointer-events: none;
}

@keyframes driftZoom {
    0%   { transform: scale(1)     translate(0%, 0%); }
    25%  { transform: scale(1.06)  translate(-1.2%, 0.6%); }
    50%  { transform: scale(1.1)   translate(0.4%, -0.8%); }
    75%  { transform: scale(1.06)  translate(1.2%, 0.4%); }
    100% { transform: scale(1)     translate(0%, 0%); }
}

@keyframes sweep {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main Container */

#MainContainer {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    padding: 20px 0;
}

/* Header */

#masthead {
    margin-bottom: 30px;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    /* background-color: rgba(0, 0, 0, 0.3);
    border:1px solid  rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 10px;*/
}

.logo-link {
    display: block;
}

.site-logo {
    width: 80px;
    height: auto;
    animation: spinZoom 1s ease-out;
}

@keyframes spinZoom {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.site-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.6em;
    line-height: 1.2;

}

.site-title a {
    color: #ffec24;
}

.site-title a:hover {
    color: #e5bb36;
}

.site-strapline {
    margin: 2px 0 0 0;
    font-size: 0.85em;
    color: #ff25c1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.search-form input[type="text"]{
    padding: 6px 10px;
    border: 1px solid #047399;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'PixelOperator', sans-serif;
    font-size: 0.85em;
    outline: none;
    min-width: 160px;
}

.header-search input[type="text"]:focus {
    border-color: #ff25c1;
}

.header-search button[type="submit"] {
    padding: 6px 12px;
    border: 1px solid #047399;
    border-radius: 5px;
    background: rgba(6, 28, 83, 0.7);
    color: #fff;
    cursor: pointer;
    font-family: 'PixelOperator', sans-serif;
    font-size: 0.85em;
    transition: background 0.2s, border-color 0.2s;
}

.header-search input[type="submit"]:hover {
    background: rgba(255, 28, 171, 0.7);
    border-color: #ff0068;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #047399;
    background: rgba(6, 28, 83, 0.7);
    color: #fff;
    font-size: 1.1em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background: rgba(255, 28, 171, 0.7);
    border-color: #ff0068;
    color: #fff;
}

/* Navigation */

.main-navigation {
    background-color: rgba(11, 151, 228, 0.7);
    border-top: 1px solid rgba(11, 151, 228, 0.9);
    border-bottom: 1px solid rgba(11, 151, 228, 0.9);
    padding: 5px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li {
    position: relative;
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 0.95em;
    transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
    color: #ff25c1;
    background: rgba(11, 151, 228, 0.7);
}

.nav-menu .menu-item-has-children > a::after {
    content: ' \25BC';
    font-size: 0.6em;
    vertical-align: middle;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: rgba(11, 151, 228, 0.7);
    border: 1px solid rgba(11, 151, 228, 0.9);;
    border-radius: 5px;
    min-width: 200px;
    z-index: 10;
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 16px;
    white-space: nowrap;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Post Grid */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-card {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(4, 115, 153, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.grid-card:hover {
    border-color: #ff0068;
    transform: translateY(-3px);
}

.grid-card-link {
    display: block;
    color: inherit;
}

.grid-card-link:hover {
    color: inherit;
}

.grid-card-thumb {
    overflow: hidden;
}

.grid-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .grid-card-thumb img {
    transform: scale(1.05);
}

.grid-card-body {
    padding: 15px;
}

.grid-card-category {
    font-size: 0.75em;
    color: #00bcff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clear: both;
}

.grid-card-category i {
    float: left;
    margin: 0 10px 0 0;
}

.grid-card-category a {
    color: #00bcff;
    float: left;
}

.grid-card-category a:hover {
    color: #ffda21;
}

.grid-card-title a {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3;
    color: #ffffff;
    clear: both;
}

.grid-card-title a:hover{
color: #ffda21;
}

.nothing-found {
    text-align: center;
    padding: 40px 0;
    font-size: 1.2em;
    color: #d891ef;
}

/* Single Post */

.single-post {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(4, 115, 153, 0.4);
    border-radius: 8px;
    padding: 30px;
}

.single-post .post-thumbnail {
    margin: 0 auto;
    width: 50%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border:1px solid red;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .post-meta {
    font-size: 0.85em;
    color: #00bcff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1em;
}

.single-post .post-meta i {margin: 0 10px 0 0;}

.single-post .post-meta a {
    color: #00bcff;
}

.single-post .post-meta a:hover {
    color: #ffda21;
}

.single-post .post-title {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: #ffda21;
    line-height: 1.2;
    padding: 1em;
}

.post-content {
    line-height: 1.7;
    font-size: 1em;
    padding: 1em;
}
/*
.post-content p {
    margin: 0 0 1em 0;
}
*/
.post-content a {
    color: #d891ef;
    text-decoration: underline;
}

.post-content a:hover {
    color: #ff25c1;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 1em 20px 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation a {
    color: #d891ef;
    font-size: 0.95em;
}

.post-navigation a:hover {
    color: #ff25c1;
}

/* Pagination */

.footer-pagination {
    padding: 30px 0;
    text-align: center;
}

.footer-pagination .pagination {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #047399;
    border-radius: 5px;
    background: rgba(6, 28, 83, 0.7);
    color: #ffffff;
    font-size: 0.85em;
    transition: background 0.2s, border-color 0.2s;
}

.footer-pagination .page-numbers:hover {
    background: rgba(255, 28, 171, 0.7);
    border-color: #ff0068;
}

.footer-pagination .page-numbers.current {
    background: rgba(255, 28, 171, 0.7);
    border-color: #ff0068;
    font-weight: bold;
}

/* Footer */

#colophon {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
}

/*************************
    TOOLTIPS
*************************/
/* Base tooltip styles */
   
        /* Base tooltip styles */
        [data-tooltip] {
            position: relative;
            cursor: pointer;
            display: inline-block;
        }
        
        [data-tooltip]::before,
        [data-tooltip]::after {
            position: absolute;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s, visibility 0.3s;
            z-index: 100;
            pointer-events: none;
        }
        
        [data-tooltip]:hover::before,
        [data-tooltip]:hover::after {
            visibility: visible;
            opacity: 1;
        }
        
        /* Style 1: Classic Tooltip */
        .classic-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 0.85rem;
            white-space: nowrap;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }
        
        .classic-tooltip[data-tooltip]::after {
            content: '';
            border: 5px solid transparent;
            border-top-color: #333;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Style 2: Modern Material Tooltip */
        .material-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background-color: #6200ee;
            color: white;
            padding: 10px 16px;
            border-radius: 6px;
            font-size: 0.9rem;
            white-space: nowrap;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            margin-bottom: 10px;
            box-shadow: 0 4px 12px rgba(98, 0, 238, 0.2);
            font-weight: 500;
        }
        
        .material-tooltip[data-tooltip]::after {
            content: '';
            border: 6px solid transparent;
            border-top-color: #6200ee;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Style 3: Gradient Tooltip */
        .gradient-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background: linear-gradient(90deg, #ff7e5f, #feb47b);
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 12px;
            box-shadow: 0 5px 15px rgba(255, 126, 95, 0.3);
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        .gradient-tooltip[data-tooltip]::after {
            content: '';
            border: 7px solid transparent;
            border-top-color: #ff7e5f;
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Style 4: Multiline Tooltip */
        .multiline-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background-color: #2c3e50;
            color: white;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            width: 220px;
            white-space: normal;
            text-align: center;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            line-height: 1.5;
        }
        
        .multiline-tooltip[data-tooltip]::after {
            content: '';
            border: 7px solid transparent;
            border-top-color: #2c3e50;
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Style 5: Icon Tooltip with Animation */
        .icon-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background-color: #27ae60;
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) scale(0.9);
            margin-bottom: 12px;
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
            transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }
        
        .icon-tooltip[data-tooltip]:hover::before {
            transform: translateX(-50%) scale(1);
        }
        
        .icon-tooltip[data-tooltip]::after {
            content: '';
            border: 6px solid transparent;
            border-top-color: #27ae60;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Style 6: Left-aligned Tooltip */
        .left-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background-color: #9b59b6;
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
            bottom: 50%;
            right: 100%;
            transform: translateY(50%);
            margin-right: 12px;
            box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
        }
        
        .left-tooltip[data-tooltip]::after {
            content: '';
            border: 6px solid transparent;
            border-left-color: #9b59b6;
            top: 50%;
            left: -6px;
            transform: translateY(-50%);
        }
        
        /* Style 7: Bottom Tooltip */
        .bottom-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            background: rgba(255, 28, 171, 0.7);
            border-color: #ff0068;
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 12px;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }
        
        .bottom-tooltip[data-tooltip]::after {
            content: '';
            border: 6px solid transparent;
            border-top-color: rgba(255, 28, 171, 0.7);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
     
/************************
  END TOOLTIPS
************************/

/* Responsive */

@media (max-width: 768px) {
    #MainContainer {
        width: 95%;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .header-search input[type="search"] {
        min-width: 120px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu .sub-menu {
        position: static;
        border: none;
        background: rgba(0, 0, 0, 0.5);
        padding-left: 20px;
    }

    .nav-menu .sub-menu .sub-menu {
        left: 0;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .single-post {
        padding: 20px;
    }

    .single-post .post-thumbnail {
        margin: -20px -20px 15px -20px;
    }

    .single-post .post-title {
        font-size: 1.4em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
