/*
Theme Name: Skypiea
Theme URI: https://onepiece.fandom.com/wiki/Skypiea
Description: One Piece Skypiea Arc inspired WordPress theme. Features the legendary sky island of Shandora with divine clouds, golden ruins, and the winged sun symbol.
Author: Cloud-1 Project
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skypiea
Tags: one-piece, sky-islands, shandora, clouds, golden, white-sea
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ================================
   CSS VARIABLES - Skypiea Theme
   ================================ */
:root {
    /* === One Piece Skypiea Color Palette === */

    /* Primary Colors - Sky & Divine */
    --skypiea-sky-blue: #4A90D9;
    --skypiea-deep-sky: #2E5A8C;
    --skypiea-cloud-white: #F8FBFF;
    --skypiea-divine-cloud: #E8F4FC;

    /* Golden Ruins of Shandora */
    --skypiea-gold: #D4AF37;
    --skypiea-gold-light: #F4D03F;
    --skypiea-gold-dark: #B8860B;
    --shandora-rust: #8B4513;

    /* Enel's Lightning Theme */
    --enel-purple: #6B3FA0;
    --enel-lightning: #E6C200;
    --enel-dark: #2D1B4E;

    /* White Sea */
    --white-sea: #FFFFFF;
    --white-sea-gradient: linear-gradient(180deg, #87CEEB 0%, #B8D4E8 30%, #E8F4FC 70%, #FFFFFF 100%);

    /* Text Colors */
    --text-primary: #1A2332;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --text-on-dark: #FFFFFF;

    /* Accent Colors */
    --accent-red: #C53030;
    --accent-green: #2F855A;
    --accent-orange: #DD6B20;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(74, 144, 217, 0.1);
    --shadow-md: 0 4px 12px rgba(74, 144, 217, 0.15);
    --shadow-lg: 0 8px 24px rgba(74, 144, 217, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-enel: 0 0 30px rgba(107, 63, 160, 0.4);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white-sea-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.75em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--skypiea-deep-sky) 0%, var(--enel-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--skypiea-deep-sky);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-primary);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25em;
}

a {
    color: var(--skypiea-deep-sky);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--enel-purple);
}

/* ================================
   SKYPIEA DECORATIVE ELEMENTS
   ================================ */

/* Winged Sun Symbol - The symbol of Shandora */
.skypiea-winged-sun {
    position: relative;
    display: inline-block;
}

.skypiea-winged-sun::before {
    content: '☀';
    font-size: 2em;
    background: linear-gradient(135deg, var(--skypiea-gold) 0%, var(--skypiea-gold-light) 50%, var(--skypiea-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

/* Divine Clouds Background Pattern */
.divine-clouds-bg {
    position: relative;
    overflow: hidden;
}

.divine-clouds-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100px 60px at 10% 20%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 150px 80px at 25% 40%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 120px 70px at 50% 15%, rgba(255,255,255,0.8) 0%, transparent 70%),
        radial-gradient(ellipse 180px 90px at 75% 35%, rgba(255,255,255,0.6) 0%, transparent 70%),
        radial-gradient(ellipse 140px 75px at 90% 25%, rgba(255,255,255,0.85) 0%, transparent 70%);
    pointer-events: none;
    animation: cloudFloat 20s ease-in-out infinite;
}

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

/* Golden Ornament Border */
.golden-border {
    border: 3px solid var(--skypiea-gold);
    box-shadow:
        inset 0 0 0 2px var(--skypiea-gold-light),
        0 0 15px rgba(212, 175, 55, 0.3);
}

.golden-border::before,
.golden-border::after {
    content: '❧';
    color: var(--skypiea-gold);
    font-size: 1.5rem;
    position: absolute;
}

.golden-border::before {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white-sea);
    padding: 0 10px;
}

.golden-border::after {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    background: var(--white-sea);
    padding: 0 10px;
}

/* ================================
   HEADER - Skypiea Sky Island
   ================================ */
.site-header {
    background: linear-gradient(180deg,
        var(--skypiea-sky-blue) 0%,
        var(--skypiea-deep-sky) 50%,
        var(--enel-purple) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Sky Island Cloud Layer */
.site-header::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -5%;
    right: -5%;
    height: 100px;
    background:
        radial-gradient(ellipse 200px 80px at 10% 100%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 300px 100px at 30% 100%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 250px 90px at 55% 100%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 350px 110px at 80% 100%, rgba(255,255,255,0.85) 0%, transparent 70%),
        radial-gradient(ellipse 200px 70px at 95% 100%, rgba(255,255,255,0.9) 0%, transparent 70%);
    z-index: 1;
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

/* Winged Sun Logo */
.site-logo {
    margin-bottom: 1rem;
}

.winged-sun-icon {
    width: 80px;
    height: 80px;
    animation: sunGlow 3s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.9)); }
}

.site-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-on-dark);
    text-shadow:
        2px 2px 0 var(--skypiea-gold-dark),
        4px 4px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.site-title a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.site-title a:hover {
    color: var(--skypiea-gold-light);
    text-shadow:
        0 0 20px rgba(244, 208, 63, 0.5),
        2px 2px 0 var(--skypiea-gold-dark);
}

.site-description {
    margin: 0.75rem 0 0;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ================================
   NAVIGATION - Divine Cloud Menu
   ================================ */
.main-navigation {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--skypiea-gold);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.main-navigation::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--skypiea-gold) 20%,
        var(--skypiea-gold-light) 50%,
        var(--skypiea-gold) 80%,
        transparent 100%);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1.1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-normal);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current-menu-ancestor a {
    color: var(--skypiea-deep-sky);
    border-bottom-color: var(--skypiea-gold);
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
}

/* Navigation Icons (CSS-based) */
.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* Home Icon */
.nav-icon-home {
    background: var(--skypiea-deep-sky);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Dropdown Arrow */
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 4px;
    opacity: 0.6;
}

/* ================================
   MOBILE MENU TOGGLE
   ================================ */
.menu-toggle {
    display: none;
    background: var(--skypiea-gold);
    border: none;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.menu-toggle:hover {
    background: var(--skypiea-gold-light);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        justify-content: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
}

/* ================================
   HERO SECTION - Cloud Banner
   ================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--skypiea-sky-blue) 0%, var(--enel-purple) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--text-on-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

/* ================================
   MAIN CONTENT AREA
   ================================ */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-area {
    max-width: 900px;
    margin: 0 auto;
}

/* ================================
   POSTS & ARTICLES
   ================================ */
.hentry {
    background: var(--white-sea);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(74, 144, 217, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hentry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--skypiea-sky-blue) 0%,
        var(--skypiea-gold) 50%,
        var(--enel-purple) 100%);
}

.hentry:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Featured Post Badge */
.hentry.sticky {
    border: 2px solid var(--skypiea-gold);
}

.hentry.sticky::after {
    content: '★ Featured';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--skypiea-gold);
    color: var(--text-primary);
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}

/* Entry Header */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.entry-title a:hover {
    color: var(--skypiea-deep-sky);
}

/* Post Category Badge */
.post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--skypiea-sky-blue), var(--skypiea-deep-sky));
    color: var(--text-on-dark);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.entry-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Meta Icons (CSS) */
.icon-calendar,
.icon-user,
.icon-folder,
.icon-comment {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.icon-calendar {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-user {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.icon-folder {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.icon-comment {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* Featured Image */
.post-thumbnail {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.post-thumbnail:hover img {
    transform: scale(1.03);
}

/* Entry Content */
.entry-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.entry-content a {
    color: var(--skypiea-deep-sky);
    text-decoration: underline;
    text-decoration-color: rgba(74, 144, 217, 0.4);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-color: var(--skypiea-deep-sky);
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--skypiea-sky-blue), var(--skypiea-deep-sky));
    color: var(--text-on-dark) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin-top: 1rem;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--skypiea-deep-sky), var(--enel-purple));
}

.read-more-btn::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.read-more-btn:hover::after {
    transform: translateX(4px);
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.tags-links,
.cat-links {
    font-size: 0.875rem;
    color: var(--text-light);
}

.tags-links a,
.cat-links a {
    background: var(--divine-cloud, var(--skypiea-divine-cloud));
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    transition: all var(--transition-fast);
}

.tags-links a:hover,
.cat-links a:hover {
    background: var(--skypiea-gold);
    color: var(--text-primary);
}

/* ================================
   SINGLE POST PAGE
   ================================ */
.single-post .hentry {
    padding: 3rem;
}

.single-post .entry-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, var(--skypiea-divine-cloud), var(--white-sea));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    border: 1px solid rgba(74, 144, 217, 0.15);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--skypiea-gold);
    box-shadow: var(--shadow-sm);
}

.author-name {
    font-weight: 700;
    color: var(--skypiea-deep-sky);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ================================
   COMMENTS SECTION
   ================================ */
.comments-area {
    background: var(--white-sea);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--skypiea-deep-sky);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::before {
    content: '💬';
    font-size: 1.25rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--skypiea-gold);
}

.fn {
    font-weight: 700;
    color: var(--skypiea-deep-sky);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    padding-left: 60px;
}

.reply {
    padding-left: 60px;
    margin-top: 0.75rem;
}

.reply a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--skypiea-deep-sky);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    color: var(--skypiea-deep-sky);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(74, 144, 217, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white-sea);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--skypiea-sky-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ================================
   PAGINATION
   ================================ */
.pagination,
.post-navigation {
    margin: 2rem 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--white-sea);
    border: 2px solid rgba(74, 144, 217, 0.2);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--skypiea-sky-blue);
    border-color: var(--skypiea-sky-blue);
    color: var(--text-on-dark);
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

/* ================================
   WIDGETS (footer widget alanları)
   ================================ */
.widget {
    background: var(--white-sea);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(74, 144, 217, 0.1);
}

.widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--skypiea-gold);
    color: var(--skypiea-deep-sky);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '◆';
    color: var(--skypiea-gold);
    font-size: 0.75rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.08);
}

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

.widget li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.widget li a:hover {
    color: var(--skypiea-deep-sky);
}

/* Search Widget */
.widget_search input[type="search"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(74, 144, 217, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: var(--skypiea-sky-blue);
}

.widget_search input[type="submit"] {
    display: none;
}

/* ================================
   FOOTER - White Sea Base
   ================================ */
.site-footer {
    background: linear-gradient(180deg,
        var(--skypiea-deep-sky) 0%,
        var(--enel-dark) 50%,
        #1a1a2e 100%);
    color: var(--text-on-dark);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Footer Cloud Layer */
.site-footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 60px;
    background:
        radial-gradient(ellipse 150px 60px at 15% 100%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 200px 70px at 40% 100%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 180px 65px at 65% 100%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 220px 75px at 85% 100%, rgba(255,255,255,0.85) 0%, transparent 70%);
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-widget h3 {
    color: var(--skypiea-gold-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.footer-widget p,
.footer-widget li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

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

.footer-widget li {
    padding: 0.4rem 0;
}

.footer-widget li a {
    transition: color var(--transition-fast);
}

.footer-widget li a:hover {
    color: var(--skypiea-gold-light);
}

/* Footer Bottom */
.site-info {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.site-info a {
    color: var(--skypiea-gold-light);
}

.site-info a:hover {
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--skypiea-gold), var(--skypiea-gold-dark));
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ================================
   BUTTONS
   ================================ */
button,
.button,
input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--skypiea-sky-blue), var(--skypiea-deep-sky));
    color: var(--text-on-dark) !important;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--skypiea-deep-sky), var(--enel-purple));
}

/* Ghost Button */
.button-ghost {
    background: transparent;
    border: 2px solid var(--skypiea-sky-blue);
    color: var(--skypiea-sky-blue) !important;
}

.button-ghost:hover {
    background: var(--skypiea-sky-blue);
    color: var(--text-on-dark) !important;
}

/* ================================
   FORMS
   ================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(74, 144, 217, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white-sea);
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--skypiea-sky-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================
   SEARCH FORM (searchform.php)
   ================================ */
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    transition: all var(--transition-normal);
}

.search-form.search-focused {
    transform: scale(1.02);
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(74, 144, 217, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white-sea);
    transition: all var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--skypiea-sky-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--skypiea-sky-blue), var(--skypiea-deep-sky));
    color: var(--text-on-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-submit:hover {
    background: linear-gradient(135deg, var(--skypiea-deep-sky), var(--enel-purple));
    transform: translateY(-2px);
}

.search-submit svg {
    color: var(--text-on-dark);
}

/* 404 sayfasındaki arama formu sarmalayıcı */
.search-form-wrapper .search-form {
    margin-bottom: 1rem;
}

/* ================================
   WORDPRESS BLOCKS STYLING
   ================================ */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.wp-block-quote {
    border-left: 4px solid var(--skypiea-gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
}

.wp-block-pullquote {
    border-top: 4px solid var(--skypiea-gold);
    border-bottom: 4px solid var(--skypiea-gold);
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--skypiea-deep-sky);
    margin: 2rem 0;
}

.wp-block-code {
    background: var(--enel-dark);
    color: var(--skypiea-gold-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.wp-block-preformatted {
    background: var(--enel-dark);
    color: var(--text-on-dark);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.wp-block-gallery {
    margin: 1.5rem 0;
}

.wp-block-gallery .blocks-gallery-item img {
    border-radius: var(--radius-md);
}

/* ================================
   ALIGNMENT
   ================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignfull {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* ================================
   SCREEN READER TEXT
   ================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ================================
   GALLERY
   ================================ */
.gallery {
    display: grid;
    grid-grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast);
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ================================
   404 PAGE
   ================================ */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.error-cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
}

.error-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.error-number {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--skypiea-sky-blue), var(--skypiea-deep-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-symbol {
    font-size: 4rem;
    animation: cloudBounce 2s ease-in-out infinite;
}

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

.error-404 .page-title {
    font-size: 2rem;
    color: var(--skypiea-deep-sky);
    margin-bottom: 1rem;
}

.error-description {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error-search,
.error-links,
.error-recent {
    max-width: 320px;
    margin: 0 auto 2rem;
    text-align: left;
}

.error-links h2,
.error-recent h2,
.error-search h2 {
    font-size: 1.25rem;
    color: var(--skypiea-sky-blue);
    margin-bottom: 1rem;
}

.error-links ul,
.error-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-links li,
.error-recent li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.error-links a,
.error-recent a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.error-links a:hover,
.error-recent a:hover {
    color: var(--skypiea-sky-blue);
}

.link-icon {
    font-size: 1.25rem;
}

.error-illustration {
    max-width: 300px;
    margin: 2rem auto 0;
}

.error-illustration svg {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .error-number { font-size: 4rem; }
    .error-symbol { font-size: 2.5rem; }
}

/* ================================
   LOADING ANIMATION
   ================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 144, 217, 0.3);
    border-radius: 50%;
    border-top-color: var(--skypiea-sky-blue);
    animation: spin 0.8s linear infinite;
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media screen and (max-width: 1024px) {
    .site-content {
        padding: 2rem 1.5rem;
    }

    .hentry {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        padding: 0;
    }

    .header-content {
        padding: 2rem 1rem 3rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-content {
        padding: 1.5rem 1rem;
    }

    .hentry {
        padding: 1.5rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .comment-content,
    .reply {
        padding-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .entry-title {
        font-size: 1.35rem;
    }

    .read-more-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .site-header,
    .main-navigation,
    .comments-area,
    .site-footer,
    .back-to-top,
    .post-navigation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hentry {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
