/*
Custom CSS for Taylor's Chatterbox Blog
Add this to the end of your style.css file or use as a custom CSS file
Manchester United themed colors - Red, Black, Yellow, White
*/

/* Import fonts to match landing page */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Rajdhani:wght@500;700&display=swap');

/* Color Variables - Manchester United Theme */
:root {
    --red-primary: #DA291C;
    --red-dark: #8B0000;
    --yellow-accent: #FBE122;
    --black: #000000;
    --dark-bg: #1a0a0a;
    --darker: #0a0000;
    --light: #ffffff;
}

/* Override body background */
body {
    background: var(--darker) !important;
    font-family: 'Rajdhani', sans-serif !important;
    position: relative;
}

/* Add tech grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--dark-bg) 100%);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(251, 225, 34, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 225, 34, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* Site container */
.site {
    background: var(--dark-bg) !important;
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(251, 225, 34, 0.3),
        inset 0 0 0 2px rgba(251, 225, 34, 0.2);
    position: relative;
    z-index: 1;
    margin: 20px auto;
    max-width: 1100px;
    border: 3px solid var(--yellow-accent);
}

/* Corner accents */
.site::before,
.site::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--red-primary);
    z-index: 2;
}

.site::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.site::after {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

/* Header styling */
.site-header {
    background: linear-gradient(135deg, var(--red-primary), var(--dark-bg));
    border-radius: 20px 20px 0 0;
    padding: 40px 20px !important;
    border-bottom: 3px solid var(--yellow-accent);
    position: relative;
}

.site-branding {
    text-align: center;
}

.site-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 52px !important;
    color: var(--light) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px var(--yellow-accent),
        3px 3px 0 var(--red-dark);
    margin-bottom: 10px !important;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 20px var(--yellow-accent), 3px 3px 0 var(--red-dark); 
    }
    50% { 
        text-shadow: 0 0 30px var(--yellow-accent), 3px 3px 0 var(--red-dark); 
    }
}

.site-title a {
    color: var(--light) !important;
    text-decoration: none;
    box-shadow: none !important;
}

.site-title a:hover {
    color: var(--yellow-accent) !important;
}

.site-description {
    color: var(--red-primary) !important;
    font-size: 20px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation {
    background: rgba(251, 225, 34, 0.1);
    border: 2px solid var(--yellow-accent);
    border-radius: 10px;
    margin-top: 20px;
}

.main-navigation a {
    color: var(--yellow-accent) !important;
    font-weight: 700;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: var(--yellow-accent);
    color: var(--darker) !important;
    box-shadow: 0 0 15px var(--yellow-accent);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif !important;
    color: var(--yellow-accent) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.entry-title {
    font-family: 'Oswald', sans-serif !important;
    color: var(--light) !important;
    text-shadow: 0 0 15px var(--yellow-accent);
    position: relative;
}

.entry-title a {
    color: var(--light) !important;
    box-shadow: none !important;
}

.entry-title a:hover {
    color: var(--yellow-accent) !important;
    text-shadow: 0 0 20px var(--yellow-accent);
}

/* Post content */
.entry-content,
.entry-summary {
    font-family: 'Rajdhani', sans-serif !important;
    color: #e8e8f0 !important;
    line-height: 1.8;
    font-weight: 500;
    font-size: 18px;
}

.entry-content,
.entry-summary,
.site-main {
    background: rgba(26, 26, 46, 0.8);
    padding: 30px;
    border-radius: 15px;
}

/* Links */
a {
    color: var(--yellow-accent) !important;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--red-primary) !important;
    text-shadow: 0 0 10px var(--yellow-accent);
}

/* Buttons and submit buttons */
button,
input[type="button"],
input[type="submit"],
.button {
    background: linear-gradient(135deg, var(--yellow-accent), var(--red-primary)) !important;
    color: var(--darker) !important;
    border: 2px solid var(--yellow-accent) !important;
    border-radius: 10px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 10px 40px rgba(251, 225, 34, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(251, 225, 34, 0.6),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

/* Post meta */
.entry-meta,
.entry-footer {
    color: var(--red-primary) !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-meta a,
.entry-footer a {
    color: var(--red-primary) !important;
}

.entry-meta a:hover,
.entry-footer a:hover {
    color: var(--yellow-accent) !important;
}

/* Tags */
.tags-links a {
    background: rgba(251, 225, 34, 0.2);
    color: var(--yellow-accent) !important;
    border: 1px solid var(--yellow-accent);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin: 3px;
    box-shadow: none !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags-links a:hover {
    background: var(--yellow-accent);
    color: var(--darker) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--yellow-accent);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--yellow-accent) !important;
    background: rgba(251, 225, 34, 0.05);
    padding: 20px !important;
    border-radius: 10px;
    color: #e8e8f0 !important;
    font-style: italic;
    box-shadow: inset 0 0 20px rgba(251, 225, 34, 0.1);
}

/* Sidebar */
.sidebar,
.widget-area {
    background: rgba(26, 26, 46, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(251, 225, 34, 0.2);
    box-shadow: 0 5px 15px rgba(251, 225, 34, 0.1);
}

.widget-title {
    font-family: 'Oswald', sans-serif !important;
    color: var(--yellow-accent) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--yellow-accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget a {
    color: #e8e8f0 !important;
    font-weight: 500;
}

.widget a:hover {
    color: var(--yellow-accent) !important;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker));
    color: var(--light) !important;
    padding: 30px 20px !important;
    border-radius: 0 0 20px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid var(--yellow-accent);
}

.site-footer a {
    color: var(--yellow-accent) !important;
    font-weight: 700;
}

.site-footer a:hover {
    color: var(--red-primary) !important;
}

.site-info {
    color: #e8e8f0 !important;
}

/* Comments */
.comment-list {
    background: rgba(26, 26, 46, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(251, 225, 34, 0.2);
}

.comment-author {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700;
    color: var(--yellow-accent) !important;
    text-transform: uppercase;
}

.comment-reply-link {
    background: var(--yellow-accent) !important;
    color: var(--darker) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-reply-link:hover {
    background: var(--red-primary) !important;
    box-shadow: 0 0 15px var(--red-primary);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 2px solid rgba(251, 225, 34, 0.3) !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-family: 'Rajdhani', sans-serif !important;
    color: var(--light) !important;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--yellow-accent) !important;
    outline: none;
    box-shadow: 0 0 20px rgba(251, 225, 34, 0.3);
    background: rgba(26, 26, 46, 0.95) !important;
}

/* Pagination */
.pagination,
.nav-links {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.nav-links a {
    background: rgba(251, 225, 34, 0.2);
    color: var(--yellow-accent) !important;
    border: 1px solid var(--yellow-accent);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 5px;
    font-weight: 700;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--yellow-accent);
    color: var(--darker) !important;
    box-shadow: 0 0 20px var(--yellow-accent);
}

.pagination .current,
.nav-links .current {
    background: var(--yellow-accent);
    color: var(--darker) !important;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 5px;
    font-weight: 700;
}

/* Post thumbnails - FEATURED IMAGES */
.post-thumbnail,
.featured-image,
.entry-thumbnail {
    text-align: center;
    margin: 0 auto 30px auto;
    display: block;
}

.post-thumbnail img,
.featured-image img,
.entry-thumbnail img {
    border-radius: 15px;
    border: 2px solid var(--yellow-accent);
    box-shadow: 
        0 10px 30px rgba(251, 225, 34, 0.3),
        0 0 0 1px rgba(251, 225, 34, 0.1);
    transition: all 0.3s ease;
    /* Default featured image size - smaller and more manageable */
    max-width: 500px !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.post-thumbnail img:hover,
.featured-image img:hover,
.entry-thumbnail img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 40px rgba(251, 225, 34, 0.5),
        0 0 30px var(--yellow-accent);
}

/* For single post pages - bit bigger but still reasonable */
.single .post-thumbnail img,
.single .featured-image img {
    max-width: 600px !important;
    max-height: 450px !important;
}

/* For post lists/archive pages - keep them smaller */
.archive .post-thumbnail img,
.blog .post-thumbnail img,
.search .post-thumbnail img {
    max-width: 400px !important;
    max-height: 350px !important;
}

/* Images in content */
.entry-content img,
.entry-summary img {
    border-radius: 10px;
    border: 2px solid rgba(251, 225, 34, 0.3);
    box-shadow: 0 5px 15px rgba(251, 225, 34, 0.2);
}

/* Search form */
.search-form {
    position: relative;
}

.search-submit {
    background: var(--yellow-accent) !important;
    color: var(--darker) !important;
    border-radius: 0 10px 10px 0 !important;
    font-weight: 700 !important;
}

.search-submit:before {
    content: "SEARCH";
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .site {
        margin: 10px;
        border-radius: 15px;
    }
    
    .site-header {
        border-radius: 15px 15px 0 0;
        padding: 30px 15px !important;
    }
    
    .site-title {
        font-size: 38px !important;
    }
    
    .site-footer {
        border-radius: 0 0 15px 15px;
    }
}

/* Cool tech effect for titles */
.entry-title::before {
    content: '⚡ ';
    opacity: 0.8;
}

.entry-title::after {
    content: ' ⚡';
    opacity: 0.8;
}

/* Selection highlighting */
::selection {
    background: var(--yellow-accent);
    color: var(--darker);
}

::-moz-selection {
    background: var(--yellow-accent);
    color: var(--darker);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--yellow-accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* Add some speed line effects on hover */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-accent), transparent);
    transition: left 0.5s;
    z-index: 1;
}

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

/* Additional readability improvements */
p {
    color: #e8e8f0 !important;
}

.entry-content p,
.entry-summary p,
.comment-content p {
    color: #e8e8f0 !important;
    font-size: 18px;
    line-height: 1.8;
}

/* Make sure all text elements are readable */
body,
article,
.post,
.page {
    color: #e8e8f0 !important;
}

/* Date and time elements */
time,
.posted-on,
.byline {
    color: var(--red-primary) !important;
    font-weight: 600;
}

/* Category links */
.cat-links a,
.category a {
    background: rgba(218, 41, 28, 0.3);
    color: var(--red-primary) !important;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid var(--red-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-links a:hover,
.category a:hover {
    background: var(--red-primary);
    color: var(--light) !important;
    box-shadow: 0 0 15px var(--red-primary);
}

/* Archive pages and lists */
.archive-description,
.taxonomy-description,
.page-description {
    color: #e8e8f0 !important;
    font-size: 18px;
    line-height: 1.8;
    padding: 20px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
    border-left: 4px solid var(--yellow-accent);
}

/* Post lists and excerpts */
.post-list article,
.hentry {
    background: rgba(26, 26, 46, 0.6);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 1px solid rgba(251, 225, 34, 0.2);
}

/* Read more links */
.more-link,
.read-more {
    background: var(--yellow-accent) !important;
    color: var(--darker) !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(251, 225, 34, 0.3);
}

.more-link:hover,
.read-more:hover {
    background: var(--red-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 41, 28, 0.4);
}

/* Improve table readability if used */
table {
    color: #e8e8f0 !important;
    border-color: rgba(251, 225, 34, 0.3) !important;
}

th {
    background: rgba(251, 225, 34, 0.2);
    color: var(--yellow-accent) !important;
    font-weight: 700;
}

td {
    border-color: rgba(251, 225, 34, 0.2) !important;
}

/* Lists within content */
.entry-content ul,
.entry-content ol,
.entry-summary ul,
.entry-summary ol {
    color: #e8e8f0 !important;
}

.entry-content li,
.entry-summary li {
    color: #e8e8f0 !important;
    margin-bottom: 8px;
}

/* Strong emphasis */
strong,
b {
    color: var(--yellow-accent) !important;
    font-weight: 700;
}

/* Code blocks */
code,
pre {
    background: rgba(15, 15, 30, 0.8) !important;
    color: var(--yellow-accent) !important;
    border: 1px solid rgba(251, 225, 34, 0.3);
}
/* ========================================
   IMAGE SIZE CONTROL FOR HTMLY POSTS
   Add this to your existing custom CSS
   ======================================== */

/* Default image sizing - images will be responsive but not huge */
.entry-content img,
.entry-summary img,
article img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* For regular inline images - nice medium size */
.entry-content img:not(.alignleft):not(.alignright):not(.aligncenter),
.entry-summary img:not(.alignleft):not(.alignright):not(.aligncenter) {
    max-width: 700px !important;
    display: block;
    margin: 20px auto;
}

/* Smaller default for portrait/tall images */
.entry-content img[height],
.entry-summary img[height] {
    max-height: 600px !important;
    width: auto !important;
}

/* Left aligned images */
.alignleft,
img.alignleft {
    float: left !important;
    margin: 10px 20px 20px 0 !important;
    max-width: 350px !important;
}

/* Right aligned images */
.alignright,
img.alignright {
    float: right !important;
    margin: 10px 0 20px 20px !important;
    max-width: 350px !important;
}

/* Centered images */
.aligncenter,
img.aligncenter {
    display: block !important;
    margin: 20px auto !important;
    max-width: 700px !important;
}

/* Full width option - add 'alignfull' class if needed */
.alignfull,
img.alignfull {
    max-width: 100% !important;
    width: 100% !important;
    margin: 30px 0 !important;
}

/* Small thumbnail size option */
.size-thumbnail,
img.size-thumbnail {
    max-width: 200px !important;
}

/* Medium size option */
.size-medium,
img.size-medium {
    max-width: 400px !important;
}

/* Large size option */
.size-large,
img.size-large {
    max-width: 700px !important;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .entry-content img,
    .entry-summary img,
    .alignleft,
    .alignright,
    .aligncenter {
        max-width: 100% !important;
        float: none !important;
        margin: 15px auto !important;
        display: block !important;
    }
    
    /* Reduce max height on mobile */
    .entry-content img[height],
    .entry-summary img[height] {
        max-height: 400px !important;
    }
}

/* Optional: If you want ALL images smaller by default, uncomment this */
/*
.entry-content img,
.entry-summary img {
    max-width: 500px !important;
}
*/

/* Optional: Prevent huge images entirely - uncomment if needed */
/*
.entry-content img,
.entry-summary img {
    max-width: 600px !important;
    max-height: 500px !important;
}
*/

/* ========================================
   ADDITIONAL HTMLY SPECIFIC IMAGE FIXES
   ======================================== */

/* Force center alignment on all post header images */
article > img:first-child,
.post > img:first-child,
.hentry > img:first-child {
    display: block !important;
    margin: 0 auto 30px auto !important;
    max-width: 500px !important;
    max-height: 400px !important;
    border-radius: 15px;
    border: 2px solid var(--yellow-accent);
    box-shadow: 0 10px 30px rgba(251, 225, 34, 0.3);
}

/* If HTMLy wraps images in divs */
.post-image,
.entry-image,
article > div:first-child img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 500px !important;
    max-height: 400px !important;
    text-align: center;
}

/* Make sure image containers are centered */
.post-image,
.entry-image {
    text-align: center;
    margin: 0 auto 30px auto;
}

/* Override any HTMLy inline styles that might mess with sizing */
article img[style],
.post img[style],
.entry-content img[style] {
    width: auto !important;
    max-width: 500px !important;
    max-height: 400px !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* For images that HTMLy might wrap in paragraph tags */
p > img {
    display: block !important;
    margin: 20px auto !important;
    max-width: 500px !important;
    max-height: 400px !important;
}

/* Alternative - targets the page by URL */
body[class*="school-worksheets"] p,
body[class*="school-worksheets"] li,
body[class*="school-worksheets"] div {
    color: #000 !important;
}

/* Custom landing page styling - works on any page */
.worksheet-landing {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #fff;
}

.worksheet-landing * {
    color: #000 !important;
}

.worksheet-landing h1,
.worksheet-landing h2,
.worksheet-landing h3 {
    color: #DA291C !important;
}

.worksheet-landing .header-box {
    background: #DA291C;
    color: white !important;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.worksheet-landing .header-box * {
    color: white !important;
}

.worksheet-landing .yellow-box {
    background: #FBE122;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
    border: 3px solid #DA291C;
}

.worksheet-landing .yellow-box * {
    color: #000 !important;
}

.worksheet-landing .red-box {
    background: #DA291C;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.worksheet-landing .red-box * {
    color: white !important;
}

.worksheet-landing .main-button {
    display: inline-block;
    background: #DA291C;
    color: white !important;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
}

.worksheet-landing .yellow-button {
    display: inline-block;
    background: #FBE122;
    color: #000 !important;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
}

.worksheet-landing .section-heading {
    color: #DA291C !important;
    border-bottom: 3px solid #DA291C;
    padding-bottom: 10px;
    margin-top: 40px;
}

.worksheet-landing .topic-box {
    background: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #DA291C;
}