/* 
 * Single Post Template Styles
 * Oliwa Hockey Advisors
 * 
 * Comprehensive typography and content styling
 */

/* ==========================================
   BASE STYLES & SMOOTH SCROLL
   ========================================== */
.single-post-main {
    scroll-behavior: smooth;
}

/* ==========================================
   POST CONTENT TYPOGRAPHY
   ========================================== */

/* Base body text - Arial 20px as requested */
.post-content {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: #04192C;
}

.post-content p {
    margin-bottom: 1.5em;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: #04192C;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   HEADINGS - Based on Homepage Style
   ========================================== */

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 800;
    color: #04192C;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.post-content h1 {
    font-size: 2.5rem; /* 40px */
    margin-top: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #184973;
}

.post-content h2 {
    font-size: 2rem; /* 32px */
    padding-bottom: 0.4em;
    border-bottom: 2px solid #EDEFF0;
    position: relative;
}

.post-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #B8030D;
}

.post-content h3 {
    font-size: 1.625rem; /* 26px */
    color: #184973;
}

.post-content h4 {
    font-size: 1.375rem; /* 22px */
    color: #184973;
}

.post-content h5 {
    font-size: 1.125rem; /* 18px */
    color: #4D637B;
    font-weight: 700;
}

.post-content h6 {
    font-size: 1rem; /* 16px */
    color: #4D637B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* First paragraph after heading - larger */
.post-content h2 + p,
.post-content h3 + p {
    font-size: 22px;
    color: #184973;
    font-weight: 500;
}

/* ==========================================
   LISTS - Bullets & Numbered
   ========================================== */

.post-content ul,
.post-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.post-content ul {
    list-style: none;
}

.post-content ul li {
    position: relative;
    margin-bottom: 0.75em;
    padding-left: 1.5em;
    font-size: 20px;
    line-height: 1.8;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background-color: #B8030D;
    border-radius: 50%;
}

/* Nested lists */
.post-content ul ul li::before {
    background-color: #184973;
    width: 6px;
    height: 6px;
}

.post-content ol {
    list-style: none;
    counter-reset: custom-counter;
}

.post-content ol li {
    position: relative;
    margin-bottom: 0.75em;
    padding-left: 2em;
    counter-increment: custom-counter;
    font-size: 20px;
    line-height: 1.8;
}

.post-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #B8030D;
    font-size: 20px;
}

/* Nested ordered lists */
.post-content ol ol li::before {
    content: counter(custom-counter, lower-alpha) ".";
    color: #184973;
}

/* ==========================================
   LINKS
   ========================================== */

.post-content a {
    color: #184973;
    text-decoration: underline;
    text-decoration-color: #B8030D;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.post-content a:hover {
    color: #B8030D;
    text-decoration-color: #184973;
}

/* ==========================================
   BLOCKQUOTES
   ========================================== */

.post-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: linear-gradient(135deg, #EDEFF0 0%, #F8F9FA 100%);
    border-left: 5px solid #B8030D;
    border-radius: 0 8px 8px 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(4, 25, 44, 0.08);
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: #184973;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content blockquote p {
    margin: 0;
    font-size: 22px;
    font-style: italic;
    color: #04192C;
    position: relative;
    z-index: 1;
}

.post-content blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: 16px;
    color: #4D637B;
    font-weight: 700;
    font-style: normal;
}

.post-content blockquote cite::before {
    content: '— ';
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

.post-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: #EDEFF0;
    color: #B8030D;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-weight: 600;
}

.post-content pre {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #04192C;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(4, 25, 44, 0.15);
}

.post-content pre code {
    display: block;
    background: none;
    color: #FFFFFF;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================
   IMAGES & FIGURES
   ========================================== */

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 8px 24px rgba(4, 25, 44, 0.12);
}

.post-content figure {
    margin: 2em 0;
}

.post-content figcaption {
    margin-top: 0.75em;
    font-size: 16px;
    color: #4D637B;
    font-style: italic;
    text-align: center;
}

/* WordPress alignment classes */
.post-content .alignleft {
    float: left;
    margin: 0.5em 2em 1em 0;
}

.post-content .alignright {
    float: right;
    margin: 0.5em 0 1em 2em;
}

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

.post-content .alignwide {
    margin-left: -5%;
    margin-right: -5%;
    max-width: 110%;
}

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

/* ==========================================
   TABLES
   ========================================== */

.post-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(4, 25, 44, 0.08);
}

.post-content table thead {
    background: linear-gradient(135deg, #04192C 0%, #184973 100%);
}

.post-content table thead th {
    padding: 1em;
    text-align: left;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 18px;
    border-bottom: 2px solid #B8030D;
}

.post-content table tbody tr {
    border-bottom: 1px solid #EDEFF0;
    transition: background-color 0.3s ease;
}

.post-content table tbody tr:hover {
    background-color: #F8F9FA;
}

.post-content table tbody tr:last-child {
    border-bottom: none;
}

.post-content table tbody td {
    padding: 1em;
    font-size: 18px;
    color: #04192C;
}

.post-content table tbody tr:nth-child(even) {
    background-color: #EDEFF0;
}

.post-content table tbody tr:nth-child(even):hover {
    background-color: #E5E7EB;
}

/* ==========================================
   HORIZONTAL RULE
   ========================================== */

.post-content hr {
    margin: 3em 0;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #184973, transparent);
    position: relative;
}

.post-content hr::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 14px;
    background-color: #B8030D;
    border-radius: 2px;
}

/* ==========================================
   STRONG & EMPHASIS
   ========================================== */

.post-content strong,
.post-content b {
    font-weight: 700;
    color: #04192C;
}

.post-content em,
.post-content i {
    font-style: italic;
}

/* ==========================================
   SPECIAL WORDPRESS BLOCKS
   ========================================== */

/* Button Block */
.post-content .wp-block-button__link {
    display: inline-block;
    padding: 0.75em 2em;
    background-color: #B8030D;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 3, 13, 0.3);
}

.post-content .wp-block-button__link:hover {
    background-color: #8B0209;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 3, 13, 0.4);
}

/* Pullquote */
.post-content .wp-block-pullquote {
    margin: 2em 0;
    padding: 2em;
    border-top: 4px solid #B8030D;
    border-bottom: 4px solid #B8030D;
    text-align: center;
}

.post-content .wp-block-pullquote blockquote {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.post-content .wp-block-pullquote p {
    font-size: 28px;
    font-weight: 700;
    color: #04192C;
}

/* Cover Block */
.post-content .wp-block-cover {
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .post-content {
        font-size: 18px;
    }
    
    .post-content p {
        font-size: 18px;
    }
    
    .post-content h1 {
        font-size: 2rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.5rem;
    }
    
    .post-content h4 {
        font-size: 1.25rem;
    }
    
    .post-content ul li,
    .post-content ol li {
        font-size: 18px;
    }
    
    .post-content blockquote p {
        font-size: 20px;
    }
    
    .post-content table thead th,
    .post-content table tbody td {
        font-size: 16px;
        padding: 0.75em;
    }
    
    .post-content .alignleft,
    .post-content .alignright {
        float: none;
        margin: 1em 0;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

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

.single-post-main .animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.single-post-main .animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.single-post-main .animate-delay-200 {
    animation-delay: 0.2s;
}

.single-post-main .animate-delay-400 {
    animation-delay: 0.4s;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.single-post-main *:focus-visible {
    outline: 2px solid #184973;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .single-post-main *,
    .single-post-main *::before,
    .single-post-main *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .single-post-main .animate-on-scroll {
        opacity: 1 !important;
    }
    
    .post-content {
        font-size: 12pt;
    }
    
    .post-content a {
        text-decoration: underline;
        color: #000;
    }
    
    .post-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================
   SELECTION STYLING
   ========================================== */

.post-content ::selection {
    background-color: #FFD700;
    color: #04192C;
}

.post-content ::-moz-selection {
    background-color: #FFD700;
    color: #04192C;
}

