/*
Theme Name: HealthWise Pro
Theme URI: https://yoursite.com/healthwise-theme
Author: Your Name
Author URI: https://yoursite.com
Description: A modern, fast, and professional WordPress theme for health and wellness websites. Features advanced search with anime character animation, AdSense ready, mobile responsive, and SEO optimized.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthwise
Tags: health, blog, responsive, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo
*/

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Health Theme Colors */
    --primary-color: #00b894;
    --secondary-color: #0984e3;
    --accent-color: #6c5ce7;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --white: #ffffff;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f8f9fa;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER STYLES
   =========================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
    overflow: hidden;
}

/* Floating decorative icons */
.header-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    color: rgba(0, 184, 148, 0.1);
    font-size: 30px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    animation: float 6s infinite;
}

.floating-icon-2 {
    top: 60%;
    left: 85%;
    animation: float 8s infinite 1s;
}

.floating-icon-3 {
    top: 30%;
    left: 70%;
    animation: float 7s infinite 2s;
}

.floating-icon-4 {
    top: 70%;
    left: 30%;
    animation: float 9s infinite 1.5s;
}

.floating-icon-5 {
    top: 40%;
    left: 50%;
    animation: float 10s infinite 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.3;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.header-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Floating particles in header */
.header-top::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% {
        background-position: 0 0, 40px 40px;
    }
    100% {
        background-position: 50px 50px, 90px 90px;
    }
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.header-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition);
}

.header-social a:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.header-social a:hover {
    transform: scale(1.3) rotate(360deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.header-main {
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-text i {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.95);
    }
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
}

.main-navigation a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Search Bar */
.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

/* ===========================
   HERO/FEATURED SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), rgba(9, 132, 227, 0.05));
    padding: 60px 0;
    margin-bottom: 40px;
}

.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-post {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
}

.featured-post:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 0 30px rgba(0, 184, 148, 0.4),
        0 0 60px rgba(9, 132, 227, 0.3);
}

/* Glowing border animation */
.featured-post::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color),
        var(--primary-color)
    );
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    background-size: 300% 300%;
    transition: var(--transition);
}

.featured-post:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

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

.featured-post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 4px 20px rgba(0, 184, 148, 0.6),
            0 0 30px rgba(0, 184, 148, 0.4);
    }
}

.featured-post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.1), rgba(0, 184, 148, 0.1));
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: var(--transition);
}

/* Animated border gradient */
.post-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .post-category::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.post-card:hover .post-category {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.featured-post-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-post-title a {
    color: var(--dark-color);
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===========================
   MAIN CONTENT AREA
   =========================== */
.site-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D hover effect with glow */
.post-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 0 20px rgba(0, 184, 148, 0.3),
        0 0 40px rgba(9, 132, 227, 0.2);
}

/* Gradient overlay animation on hover */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 184, 148, 0.1),
        transparent
    );
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.post-card:hover::before {
    left: 100%;
}

/* Shine effect on card */
.post-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: var(--transition);
    pointer-events: none;
}

.post-card:hover::after {
    animation: shine 0.8s ease;
}

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
    }
    100% {
        top: 150%;
        left: 150%;
    }
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 15px 15px 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Advanced zoom and tilt effect */
.post-card:hover .post-thumbnail img {
    transform: scale(1.15) rotate(2deg);
}

/* Gradient overlay on image hover */
.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 184, 148, 0.4),
        rgba(9, 132, 227, 0.4)
    );
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail::after {
    opacity: 1;
}

/* Ripple effect on thumbnail */
.post-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.post-card:hover .post-thumbnail::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    position: relative;
}

.post-title a {
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--dark-color), var(--dark-color));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: all 0.4s ease;
    background-clip: text;
    -webkit-background-clip: text;
}

.post-card:hover .post-title a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 100% 100%;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

/* Underline animation */
.post-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

.post-card:hover .post-title a::after {
    width: 100%;
}

.post-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.1));
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Animated background on hover */
.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.post-card:hover .read-more {
    gap: 10px;
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.post-card:hover .read-more::before {
    left: 0;
}

/* Arrow bounce animation */
.read-more i {
    transition: var(--transition);
}

.post-card:hover .read-more i {
    animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* Ad Spaces */
.ad-space {
    background: #f0f0f0;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.category-count {
    background: var(--light-color);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Animated wave effect at top of footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    animation: waveMove 15s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    }
    25% {
        clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
    }
    75% {
        clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
    }
}

/* Floating orbs in footer background */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 184, 148, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(9, 132, 227, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
    animation: floatOrbs 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrbs {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
        width: 40px;
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
        width: 60px;
    }
}

.footer-widget p {
    color: var(--light-color);
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-widget ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Ripple effect on social icons */
.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-links a:hover::before {
    width: 80px;
    height: 80px;
    opacity: 0;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 
        0 10px 20px rgba(0, 184, 148, 0.4),
        0 0 30px rgba(0, 184, 148, 0.3);
}

/* Individual social icon animations */
.social-links a:nth-child(1):hover { animation: bounce 0.6s ease; }
.social-links a:nth-child(2):hover { animation: wobble 0.6s ease; }
.social-links a:nth-child(3):hover { animation: swing 0.6s ease; }
.social-links a:nth-child(4):hover { animation: pulse 0.6s ease; }
.social-links a:nth-child(5):hover { animation: shake 0.6s ease; }

@keyframes bounce {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(-15px); }
}

@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

/* ===========================
   SEARCH RESULTS & ANIME CHARACTER
   =========================== */
.search-results-wrapper {
    position: relative;
}

.anime-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 999;
    overflow: hidden;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.anime-character.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.character-face {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    position: relative;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.character-eyes {
    display: flex;
    gap: 15px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.eye {
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 48%, 52%, 100% {
        height: 10px;
    }
    50% {
        height: 2px;
    }
}

.character-mouth {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    border: 2px solid var(--white);
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.typing-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    min-height: 40px;
    overflow: hidden;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--primary-color);
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ===========================
   SINGLE POST PAGE
   =========================== */
.single-post-header {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), rgba(9, 132, 227, 0.05));
    padding: 40px 0;
    margin-bottom: 40px;
}

.single-post-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-post-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.single-post-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.single-post-content h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.single-post-content h3 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

/* ===========================
   404 PAGE
   =========================== */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404-title {
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.error-404-subtitle {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-search {
        max-width: 100%;
        order: 2;
        flex: 1 1 100%;
        margin-top: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .single-post-title {
        font-size: 28px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Staggered animation for post cards */
.post-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }
.post-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   BLANK PAGE STYLES
   =========================== */
.page-header {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), rgba(9, 132, 227, 0.05));
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.blank-page-content {
    min-height: 400px;
    padding: 40px 0;
}

.blank-page-wrapper {
    background: var(--white);
    padding: 60px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.placeholder-text {
    color: var(--text-light);
    font-size: 16px;
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .blank-page-wrapper {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
}

/* ===========================
   ENHANCED 3D ANIMATIONS
   =========================== */

/* 3D Flip animation for header elements */
@keyframes flip3D {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* 3D Card Rotation */
.post-card,
.featured-post {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.post-card:hover,
.featured-post:hover {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: perspective(1000px) translateY(-10px) rotateX(2deg) rotateY(0deg);
    }
    50% {
        transform: perspective(1000px) translateY(-15px) rotateX(-2deg) rotateY(2deg);
    }
}

/* 3D Navigation Menu Items */
.main-navigation a {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-navigation a:hover {
    transform: perspective(300px) translateZ(10px) rotateX(-5deg);
}

/* 3D Search Button */
.search-submit {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-50%) perspective(300px) translateZ(15px) rotateY(-10deg);
}

/* 3D Logo Icon */
.logo-text i {
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.logo-text:hover i {
    transform: perspective(400px) rotateY(360deg) scale(1.2);
}

/* 3D Social Icons with Perspective */
.header-social a,
.social-links a {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-social a:hover,
.social-links a:hover {
    transform: perspective(400px) translateZ(20px) rotateY(15deg) rotateX(-10deg) scale(1.2);
}

/* 3D Category Badge */
.post-category,
.featured-badge {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.post-card:hover .post-category,
.featured-post:hover .featured-badge {
    transform: perspective(400px) translateZ(15px) rotateX(-5deg);
}

/* 3D Read More Button */
.read-more {
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.post-card:hover .read-more {
    transform: perspective(400px) translateX(5px) translateZ(10px) rotateY(-5deg);
}

/* 3D Back to Top Button */
.back-to-top {
    transform-style: preserve-3d;
}

.back-to-top:hover {
    transform: perspective(400px) translateY(-5px) translateZ(20px) rotateX(10deg);
}

/* 3D Sidebar Widgets */
.widget {
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.widget:hover {
    transform: perspective(800px) translateZ(10px) rotateY(2deg);
}

/* 3D Post Thumbnails */
.post-thumbnail,
.featured-post-image {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.post-thumbnail::before,
.featured-post-image::before {
    transform-style: preserve-3d;
}

/* 3D Menu Toggle */
.menu-toggle {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: perspective(200px) translateZ(10px) rotateY(10deg);
}

/* 3D Section Titles */
.section-title {
    transform-style: preserve-3d;
    animation: titleFloat 4s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: perspective(500px) translateZ(0px);
    }
    50% {
        transform: perspective(500px) translateZ(10px) rotateX(2deg);
    }
}

/* 3D Footer Wave */
.site-footer::before {
    transform-style: preserve-3d;
    animation: waveMove3D 15s ease-in-out infinite;
}

@keyframes waveMove3D {
    0%, 100% {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
        transform: perspective(1000px) rotateX(0deg);
    }
    25% {
        clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
        transform: perspective(1000px) rotateX(2deg);
    }
    50% {
        clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
        transform: perspective(1000px) rotateX(-2deg);
    }
    75% {
        clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
        transform: perspective(1000px) rotateX(1deg);
    }
}

/* 3D Floating Icons in Header */
.floating-icon {
    transform-style: preserve-3d;
    animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.floating-icon-1 {
    animation: float3D 6s infinite;
}

.floating-icon-2 {
    animation: float3D 8s infinite 1s;
}

.floating-icon-3 {
    animation: float3D 7s infinite 2s;
}

.floating-icon-4 {
    animation: float3D 9s infinite 1.5s;
}

.floating-icon-5 {
    animation: float3D 10s infinite 0.5s;
}

@keyframes float3D {
    0%, 100% {
        transform: perspective(400px) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.1;
    }
    25% {
        transform: perspective(400px) translateY(-15px) translateZ(10px) rotateX(10deg) rotateY(5deg);
        opacity: 0.2;
    }
    50% {
        transform: perspective(400px) translateY(-20px) translateZ(15px) rotateX(-5deg) rotateY(10deg);
        opacity: 0.3;
    }
    75% {
        transform: perspective(400px) translateY(-10px) translateZ(8px) rotateX(5deg) rotateY(-5deg);
        opacity: 0.2;
    }
}

/* 3D Pagination Buttons */
.pagination a,
.pagination span {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: perspective(300px) translateZ(10px) rotateY(5deg);
}

/* Enhance existing animations with 3D depth */
.btn {
    transform-style: preserve-3d;
}

.btn:hover {
    transform: perspective(400px) translateY(-2px) translateZ(10px);
}

/* 3D Post Meta Icons */
.post-meta span {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.post-meta span:hover {
    transform: perspective(200px) translateZ(5px);
}
