/**
 * Main Stylesheet for Tokutei Theme - Vibrant Light Version
 *
 * @package Tokutei
 * @since 1.0.3
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #ff6b6b;
    --color-primary-dark: #ee5a6f;
    --color-primary-darker: #dc2626;
    --color-primary-light: #ff8787;
    --color-primary-lighter: #fff5f5;

    --color-text-primary: #2c3e50;
    --color-text-secondary: #718096;
    --color-text-light: #4a5568;

    --color-background: #ffffff;
    --color-background-soft: #f7fafc;
    --color-background-accent: #fff5f5;

    --color-border: #e2e8f0;
    --color-border-light: #ffe0e0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --gradient-primary-extended: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #dc2626 100%);
    --gradient-hero: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 50%, #ffcccb 100%);

    /* Spacing System */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 4rem;     /* 64px */
    --spacing-xl: 6rem;     /* 96px */

    /* Typography */
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 15px rgba(255, 107, 107, 0.3);
    --shadow-primary-lg: 0 6px 20px rgba(255, 107, 107, 0.4);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    --radius-full: 50%;
}

/* ==========================================================================
   Japanese Background Pattern - Light & Vibrant
   ========================================================================== */

body {
    position: relative;
    background: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 228, 225, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,250,250,1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Header Styles - Clean White with Accent
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 2px solid #ff6b6b;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo/Branding */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
}

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

.site-logo img,
.default-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-logo-default {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.site-logo-default a {
    display: flex;
    align-items: center;
}

/* Navigation - Clean & Minimal */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.primary-menu-wrapper {
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    justify-content: center;
}

.primary-menu .menu-item {
    position: relative;
}

.primary-menu .menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
}

.primary-menu .menu-item a:hover {
    background: #fff5f5;
    color: #ff6b6b;
}

.primary-menu .menu-item.current-menu-item a,
.primary-menu .menu-item.current_page_item a {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.menu-text {
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.5rem;
}

.menu-toggle .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c3e50;
    position: relative;
    transition: background 0.3s ease;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    transition: transform 0.3s ease;
}

.menu-toggle .menu-icon::before {
    transform: translateY(-8px);
}

.menu-toggle .menu-icon::after {
    transform: translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
}

/* Header Actions (Login/User) */
.header-actions {
    flex-shrink: 0;
}

.login-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.3s ease;
    border: 1px solid #ffe0e0;
    position: relative;
}

.user-link:hover {
    background: #ffebeb;
}

.user-link img {
    border-radius: 50%;
    border: 2px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

/* User icon indicator - visible on mobile for better recognition */
.user-link::after {
    content: '👤';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-link {
    padding: 0.5rem 1rem;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* Enhanced User menu dropdown */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    display: none;
    z-index: 1000;
    border: 2px solid #ffe0e0;
    overflow: hidden;
}

.user-menu-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User info header */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-bottom: 2px solid #ffc9c9;
}

.user-info-header img {
    border-radius: 50%;
    border: 3px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.user-display-name {
    font-size: 1.125rem;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-username {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* User info body */
.user-info-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 8px;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9375rem;
    color: #2c3e50;
    font-weight: 500;
    word-wrap: break-word;
}

.info-value.no-groups {
    color: #95a5a6;
    font-style: italic;
    font-weight: 400;
}

/* User groups */
.user-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.group-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* User menu actions */
.user-menu-actions {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #f0f0f0;
}

.user-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.user-action-link:last-child {
    border-bottom: none;
}

.user-action-link:hover {
    background: #fff5f5;
}

.user-action-link.logout:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #ff6b6b;
}

.action-icon {
    font-size: 1.125rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Ad Banner Section - Soft Accent
   ========================================================================== */

.ad-banner-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 100%);
    border-top: 1px solid #ffe0e0;
    border-bottom: 1px solid #ffe0e0;
    padding: 0.75rem 0;
}

.ad-banner-widget {
    text-align: center;
}

.ad-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Hero Section - Vibrant Light Japanese Theme
   ========================================================================== */

.hero-section {
    background: var(--gradient-hero);
    color: var(--color-text-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,182,193,0.3) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,228,225,0.3) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary-extended);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: none;
    display: inline-block;
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons - Vibrant & Modern
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-primary);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.btn-secondary {
    background: var(--color-background);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   Sections - Clean White Background with Accents
   ========================================================================== */

/*
 * Vertical Rhythm System:
 * - Hero section: var(--spacing-xl) = 6rem (primary emphasis)
 * - CTA section: 5rem (secondary emphasis)
 * - Regular sections: var(--spacing-lg) = 4rem (standard)
 * This creates clear visual hierarchy and consistent spacing
 */

section {
    padding: var(--spacing-lg) 0;
    background: var(--color-background);
}

.section-title {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 800;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #ee5a6f;
}

/* ==========================================================================
   Features Grid - Colorful Cards
   ========================================================================== */

.features-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: height var(--transition-base);
}

.feature-card:hover::before {
    height: 6px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter var(--transition-base);
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 6px 12px rgba(255, 107, 107, 0.4));
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.feature-description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* ==========================================================================
   Posts Grid - Clean Card Design
   ========================================================================== */

.latest-posts-section {
    background: #ffffff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f7fafc;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6b6b;
}

.post-excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.read-more {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* ==========================================================================
   CTA Section - Vibrant & Inviting
   ========================================================================== */

.cta-section {
    background: #ffffff;
    color: #2c3e50;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #ff6b6b;
    border-bottom: 4px solid #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.15),
                0 -10px 40px rgba(255, 107, 107, 0.15);
    margin: 4rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238, 90, 111, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #718096;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Footer - Modern & Clean Design
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--color-text-primary);
    border-top: 4px solid var(--gradient-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-widgets {
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--color-border);
}

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

.footer-main {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-heading {
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-details strong {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-details a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ff6b6b;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ff6b6b;
}

.footer-tagline {
    font-style: italic;
    color: #718096;
}

.footer-bottom {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: var(--spacing-md) 0;
    border-top: 2px solid rgba(255, 107, 107, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.copyright {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.copyright p {
    margin: 0;
    font-size: 0.9375rem;
    color: #ffffff;
    opacity: 0.9;
}

.copyright strong {
    color: var(--color-primary-light);
    font-weight: 700;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #ffffff;
}

.footer-credits {
    opacity: 0.85;
}

.footer-credits p {
    color: #ffffff;
}

.footer-credits a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.footer-credits a:hover {
    color: #ffffff;
    border-bottom-color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================================================
   Content Area - Clean White
   ========================================================================== */

.content-wrapper {
    background: #ffffff;
    min-height: 70vh;
}

.site-main {
    padding: 40px 0;
}

article {
    margin-bottom: 2rem;
}

.entry-title {
    color: #2c3e50;
    font-weight: 700;
}

.entry-content {
    color: #2c3e50;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #2c3e50;
    font-weight: 700;
}

.entry-content a {
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #ee5a6f;
    border-bottom-color: #ee5a6f;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ffe0e0;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 800;
}

.archive-description {
    color: #718096;
    margin-top: 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
}

.pagination .current {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border-color: #ff6b6b;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #fff5f5;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #ff6b6b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Forms - Clean Light Style
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* ==========================================================================
   Accessibility - Enhanced Focus Visible States
   ========================================================================== */

/* Focus visible for all interactive elements - enhanced with glow */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.15);
}

/* Primary menu links - enhanced */
.primary-menu .menu-item a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    background: var(--color-primary-lighter);
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.1);
}

/* Buttons - enhanced with stronger glow */
.btn:focus-visible,
.login-button:focus-visible,
.logout-link:focus-visible {
    outline: 3px solid var(--color-primary-darker);
    outline-offset: 3px;
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.2);
}

/* Primary button specific */
.btn-primary:focus-visible {
    outline: 3px solid var(--color-background);
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.3);
}

/* Footer links */
.footer-menu a:focus-visible,
.footer-credits a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

/* User menu */
.user-link:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.15);
}

/* Feature and post cards - enhanced */
.feature-link:focus-visible,
.read-more:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    text-decoration: underline;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

/* Back to top button - enhanced */
.back-to-top:focus-visible {
    outline: 3px solid var(--color-background);
    outline-offset: 3px;
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.3);
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   WordPress Core - Edit Links
   ========================================================================== */

/* Style edit links properly */
.post-edit-link,
.edit-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.post-edit-link:hover,
.edit-link a:hover {
    background: #ff6b6b;
    color: #ffffff;
}

/* Hide edit links for non-logged-in users on frontend */
body:not(.logged-in) .post-edit-link,
body:not(.logged-in) .edit-link {
    display: none;
}

/* ==========================================================================
   Cookie Notice Styling
   ========================================================================== */

#cookie-notice,
.cookie-notice-container,
#cookie-law-info-bar,
.cli-bar-container {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #ffffff !important;
    padding: 1.5rem !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-align: center !important;
}

/* Force flexbox center layout */
#cookie-notice,
.cookie-notice-container,
#cookie-law-info-bar,
.cli-bar-container,
.cn-body,
.cli-bar-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
}

/* Reset all children margins */
#cookie-notice > *,
.cookie-notice-container > *,
#cookie-law-info-bar > *,
.cli-bar-container > * {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Text container */
#cookie-notice .cn-text-container,
.cookie-notice-container .cn-text,
#cookie-law-info-bar .cli-bar-message,
.cli-bar-message span {
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Buttons container - all possible selectors */
#cookie-notice .cn-buttons-container,
.cookie-notice-container .cn-buttons,
#cookie-notice form,
#cookie-law-info-bar .cli-bar-btn_container,
.cli-bar-btn_container,
.cn-buttons,
.cookie-notice-container > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Universal fix for any cookie notice */
[id*="cookie"] {
    text-align: center !important;
}

[id*="cookie"] > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

[class*="cookie"] {
    text-align: center !important;
}

[class*="cookie"] > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

#cookie-notice a,
.cookie-notice-container a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

#cookie-notice a:hover,
.cookie-notice-container a:hover {
    color: #fff5f5 !important;
}

#cookie-notice .cn-button,
.cookie-notice-container button,
.cookie-notice-container .cn-button {
    background: #ffffff !important;
    color: #ff6b6b !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

#cookie-notice .cn-button:hover,
.cookie-notice-container button:hover,
.cookie-notice-container .cn-button:hover {
    background: #fff5f5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-notice,
    .cookie-notice-container {
        padding: 1rem !important;
    }

    #cookie-notice .cn-text-container,
    .cookie-notice-container .cn-text {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }

    #cookie-notice .cn-button,
    .cookie-notice-container button {
        width: 100% !important;
        padding: 0.875rem !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .back-to-top,
    .menu-toggle,
    .ad-banner-section,
    .hero-section,
    .cta-section,
    .primary-menu-wrapper,
    .header-actions {
        display: none !important;
    }

    /* Reset backgrounds and colors */
    body {
        background: white !important;
        color: black !important;
    }

    /* Ensure readable text */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Show link URLs after text */
    a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Don't show URLs for fragments and JavaScript */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    /* Better image handling */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Keep content together */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Remove decorative elements */
    .feature-icon,
    .post-thumbnail {
        display: none;
    }

    /* Simplify borders */
    * {
        border-color: #000 !important;
    }
}

/* ==========================================================================
   Responsive Design - Mobile & Tablet
   ========================================================================== */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .site-container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

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

/* Tablet Portrait and Below (768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        gap: 0.5rem;
        color: #2c3e50;
        transition: background 0.3s ease;
        border-radius: 8px;
    }

    .menu-toggle:hover {
        background: #fff5f5;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid #ff6b6b;
        outline-offset: 2px;
    }

    .primary-menu-wrapper {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }

    .primary-menu-wrapper.active {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-menu .menu-item {
        width: 100%;
        border-top: 1px solid #ffe0e0;
    }

    .primary-menu .menu-item a {
        padding: 1rem;
        justify-content: flex-start;
    }

    .header-actions {
        margin-left: auto;
    }

    .user-menu-dropdown {
        right: 0;
        left: auto;
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Grids - Single Column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Buttons */
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Ad Banner */
    .ad-banner-section {
        padding: 1rem 0;
    }

    .ad-banner-content {
        padding: 1rem;
        font-size: 0.875rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Landscape and Below (600px) */
@media (max-width: 600px) {
    .site-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .cta-section {
        padding: 2.5rem 0;
        margin: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .login-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .post-card {
        padding: 1rem;
    }

    .post-thumbnail {
        height: 150px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .footer-contact .contact-info {
        grid-template-columns: 1fr;
    }

    /* Header Logo */
    .site-logo img,
    .site-logo-default img {
        max-height: 50px;
    }

    /* User Avatar */
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}
