/**
 * Modern WordPress Pages Styling
 * Beautiful, clean design for all WordPress pages (not posts)
 * 
 * @package MioHentai
 */

/* Page Container */
.page article,
.page-template article,
.page .single-view,
.page-template .single-view {
    max-width: 1000px;
    margin: 40px auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.page .entry-content,
.page-template .entry-content {
    max-width: 100%;
    margin: 0;
    padding: 50px 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Page Header */
.page .entry-header,
.page-template .entry-header,
.page .page-header,
.page-template .page-header {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 40px 60px 30px;
    background: transparent;
    border-radius: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Page Title */
.page .entry-title,
.page-template .entry-title,
.page .page-title,
.page-template .page-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #ececec !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.3px !important;
    text-shadow: none !important;
    display: block !important;
    padding: 5px 0 !important;
    height: auto !important;
    min-height: 55px !important;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Meta Information */
.page .entry-byline,
.page-template .entry-byline {
    padding: 15px 0;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #999;
}

.page .entry-byline a,
.page-template .entry-byline a {
    color: #f5576c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page .entry-byline a:hover,
.page-template .entry-byline a:hover {
    color: #f093fb;
}

/* Page Content Styling */
.page .story,
.page-template .story,
.page .entry-content > *:not(.entry-header):not(.entry-byline):not(.entry-footer),
.page-template .entry-content > *:not(.entry-header):not(.entry-byline):not(.entry-footer) {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Typography - Content Headings */
.page .story h1,
.page-template .story h1,
.page .entry-content h1,
.page-template .entry-content h1 {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin: 60px 0 30px 0;
    padding-bottom: 18px;
    border-bottom: 3px solid rgba(245, 87, 108, 0.4);
    line-height: 1.3;
    position: relative;
}

.page .story h1::after,
.page-template .story h1::after,
.page .entry-content h1::after,
.page-template .entry-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #f5576c 0%, #f093fb 100%);
}

.page .story h2,
.page-template .story h2,
.page .entry-content h2,
.page-template .entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 50px 0 25px 0;
    padding-left: 18px;
    border-left: 5px solid #f5576c;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.page .story h2:hover,
.page-template .story h2:hover,
.page .entry-content h2:hover,
.page-template .entry-content h2:hover {
    padding-left: 24px;
    border-left-color: #f093fb;
}

.page .story h3,
.page-template .story h3,
.page .entry-content h3,
.page-template .entry-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 40px 0 22px 0;
    line-height: 1.4;
    position: relative;
    padding-left: 12px;
}

.page .story h3::before,
.page-template .story h3::before,
.page .entry-content h3::before,
.page-template .entry-content h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f5576c;
    font-weight: 700;
}

.page .story h4,
.page-template .story h4,
.page .entry-content h4,
.page-template .entry-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 30px 0 15px 0;
    line-height: 1.5;
}

.page .story h5,
.page-template .story h5,
.page .entry-content h5,
.page-template .entry-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #d0d0d0;
    margin: 25px 0 12px 0;
    line-height: 1.5;
}

.page .story h6,
.page-template .story h6,
.page .entry-content h6,
.page-template .entry-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #c0c0c0;
    margin: 20px 0 10px 0;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragraphs */
.page .story p,
.page-template .story p,
.page .entry-content p,
.page-template .entry-content p {
    margin: 0 0 28px 0;
    color: #d0d0d0;
    line-height: 1.85;
    font-size: 16.5px;
    letter-spacing: 0.2px;
}

.page .story p:last-child,
.page-template .story p:last-child {
    margin-bottom: 0;
}

/* First paragraph drop cap effect (optional) */
.page .entry-content > p:first-of-type:first-letter,
.page-template .entry-content > p:first-of-type:first-letter {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.9;
    float: left;
    margin: 8px 12px 0 0;
    color: #f5576c;
    font-family: Georgia, serif;
}

/* Lists */
.page .story ul,
.page .story ol,
.page-template .story ul,
.page-template .story ol,
.page .entry-content ul,
.page .entry-content ol,
.page-template .entry-content ul,
.page-template .entry-content ol {
    margin: 25px 0;
    padding-left: 30px;
    color: #cccccc;
}

.page .story ul li,
.page-template .story ul li,
.page .entry-content ul li,
.page-template .entry-content ul li {
    margin-bottom: 12px;
    line-height: 1.8;
    position: relative;
    padding-left: 10px;
}

.page .story ul li::marker,
.page-template .story ul li::marker,
.page .entry-content ul li::marker,
.page-template .entry-content ul li::marker {
    color: #f5576c;
}

.page .story ol li,
.page-template .story ol li,
.page .entry-content ol li,
.page-template .entry-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    padding-left: 10px;
}

.page .story ol li::marker,
.page-template .story ol li::marker,
.page .entry-content ol li::marker,
.page-template .entry-content ol li::marker {
    color: #f5576c;
    font-weight: 700;
}

/* Links */
.page .story a,
.page-template .story a,
.page .entry-content a:not(.button):not(.btn),
.page-template .entry-content a:not(.button):not(.btn) {
    color: #f5576c;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 87, 108, 0.3);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.page .story a:hover,
.page-template .story a:hover,
.page .entry-content a:not(.button):not(.btn):hover,
.page-template .entry-content a:not(.button):not(.btn):hover {
    color: #f093fb;
    border-bottom-color: rgba(240, 147, 251, 0.5);
    background: rgba(245, 87, 108, 0.05);
}

/* Blockquotes */
.page .story blockquote,
.page-template .story blockquote,
.page .entry-content blockquote,
.page-template .entry-content blockquote {
    margin: 35px 0;
    padding: 25px 30px 25px 70px;
    background: rgba(245, 87, 108, 0.05);
    border-left: 5px solid #f5576c;
    border-radius: 8px;
    position: relative;
    font-style: italic;
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page .story blockquote::before,
.page-template .story blockquote::before,
.page .entry-content blockquote::before,
.page-template .entry-content blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 60px;
    color: rgba(245, 87, 108, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

.page .story blockquote p:last-child,
.page-template .story blockquote p:last-child,
.page .entry-content blockquote p:last-child,
.page-template .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.page .story pre,
.page-template .story pre,
.page .entry-content pre,
.page-template .entry-content pre {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #c9d1d9;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page .story code,
.page-template .story code,
.page .entry-content code,
.page-template .entry-content code {
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #f5576c;
}

.page .story pre code,
.page-template .story pre code,
.page .entry-content pre code,
.page-template .entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #c9d1d9;
}

/* Tables */
.page .story table,
.page-template .story table,
.page .entry-content table,
.page-template .entry-content table {
    width: 100%;
    margin: 35px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page .story table thead,
.page-template .story table thead,
.page .entry-content table thead,
.page-template .entry-content table thead {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.page .story table thead th,
.page-template .story table thead th,
.page .entry-content table thead th,
.page-template .entry-content table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page .story table tbody tr,
.page-template .story table tbody tr,
.page .entry-content table tbody tr,
.page-template .entry-content table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.page .story table tbody tr:nth-child(even),
.page-template .story table tbody tr:nth-child(even),
.page .entry-content table tbody tr:nth-child(even),
.page-template .entry-content table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.page .story table tbody tr:hover,
.page-template .story table tbody tr:hover,
.page .entry-content table tbody tr:hover,
.page-template .entry-content table tbody tr:hover {
    background: rgba(245, 87, 108, 0.08);
}

.page .story table td,
.page-template .story table td,
.page .entry-content table td,
.page-template .entry-content table td {
    padding: 15px 20px;
    color: #cccccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Images */
.page .story img,
.page-template .story img,
.page .entry-content img,
.page-template .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page .story img:hover,
.page-template .story img:hover,
.page .entry-content img:hover,
.page-template .entry-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* HR Divider */
.page .story hr,
.page-template .story hr,
.page .entry-content hr,
.page-template .entry-content hr {
    margin: 50px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 87, 108, 0.5) 50%, transparent 100%);
}

/* Strong and Emphasis */
.page .story strong,
.page .story b,
.page-template .story strong,
.page-template .story b,
.page .entry-content strong,
.page .entry-content b,
.page-template .entry-content strong,
.page-template .entry-content b {
    font-weight: 700;
    color: #ffffff;
}

.page .story em,
.page .story i,
.page-template .story em,
.page-template .story i,
.page .entry-content em,
.page .entry-content i,
.page-template .entry-content em,
.page-template .entry-content i {
    font-style: italic;
    color: #f093fb;
}

/* Page Footer */
.page .entry-footer,
.page-template .entry-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page article,
    .page-template article {
        margin: 20px 15px;
    }

    .page .entry-header,
    .page-template .entry-header,
    .page .page-header,
    .page-template .page-header {
        padding: 35px 25px 30px;
        margin-bottom: 0;
    }

    .page .entry-content,
    .page-template .entry-content {
        padding: 35px 25px;
        border-radius: 0 0 16px 16px;
    }
    
    .page .entry-title,
    .page-template .entry-title,
    .page .page-title,
    .page-template .page-title {
        font-size: 34px !important;
    }
    
    .page .story h1,
    .page-template .story h1,
    .page .entry-content h1,
    .page-template .entry-content h1 {
        font-size: 28px;
        margin: 45px 0 25px 0;
    }
    
    .page .story h2,
    .page-template .story h2,
    .page .entry-content h2,
    .page-template .entry-content h2 {
        font-size: 24px;
        padding-left: 15px;
        border-left-width: 4px;
        margin: 40px 0 20px 0;
    }
    
    .page .story h3,
    .page-template .story h3,
    .page .entry-content h3,
    .page-template .entry-content h3 {
        font-size: 21px;
        margin: 35px 0 18px 0;
    }
    
    .page .story p,
    .page-template .story p,
    .page .entry-content p,
    .page-template .entry-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .page .story blockquote,
    .page-template .story blockquote,
    .page .entry-content blockquote,
    .page-template .entry-content blockquote {
        padding: 20px 20px 20px 50px;
    }
    
    .page .story blockquote::before,
    .page-template .story blockquote::before,
    .page .entry-content blockquote::before,
    .page-template .entry-content blockquote::before {
        font-size: 40px;
        left: 10px;
    }
    
    .page .story table,
    .page-template .story table,
    .page .entry-content table,
    .page-template .entry-content table {
        font-size: 14px;
    }
    
    .page .story table thead th,
    .page-template .story table thead th,
    .page .entry-content table thead th,
    .page-template .entry-content table thead th {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .page .story table td,
    .page-template .story table td,
    .page .entry-content table td,
    .page-template .entry-content table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page article,
    .page-template article {
        margin: 15px 10px;
    }

    .page .entry-header,
    .page-template .entry-header,
    .page .page-header,
    .page-template .page-header {
        padding: 30px 20px 25px;
    }

    .page .entry-content,
    .page-template .entry-content {
        padding: 30px 20px;
    }
    
    .page .entry-title,
    .page-template .entry-title,
    .page .page-title,
    .page-template .page-title {
        font-size: 28px !important;
    }
    
    .page .story,
    .page-template .story,
    .page .entry-content > *,
    .page-template .entry-content > * {
        font-size: 15.5px;
    }
    
    .page .entry-content > p:first-of-type:first-letter,
    .page-template .entry-content > p:first-of-type:first-letter {
        font-size: 2.8em;
        margin: 5px 8px 0 0;
    }
}

/* Print Styles */
@media print {
    .page .entry-content,
    .page-template .entry-content {
        background: white;
        color: black;
        box-shadow: none;
        border: none;
    }
    
    .page .entry-title,
    .page-template .entry-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .page .story,
    .page-template .story,
    .page .entry-content > *,
    .page-template .entry-content > * {
        color: black;
    }
}

/* Accessibility Improvements */
.page .entry-content :focus,
.page-template .entry-content :focus {
    outline: 2px solid #f5576c;
    outline-offset: 4px;
}

/* Selection Color */
.page .entry-content ::selection,
.page-template .entry-content ::selection {
    background: rgba(245, 87, 108, 0.3);
    color: #ffffff;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Custom WordPress Block Styles */
.page .wp-block-image,
.page-template .wp-block-image {
    margin: 30px 0;
}

.page .wp-block-quote,
.page-template .wp-block-quote {
    margin: 35px 0;
    padding: 25px 30px 25px 70px;
    background: rgba(245, 87, 108, 0.05);
    border-left: 5px solid #f5576c;
}

