/*
Custom CSS for Nevaeh Rose's Blog
Add this to the end of your style.css file or use as a custom CSS file
Matches the pink, girly aesthetic of the landing page
*/

/* Import fonts to match landing page */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* Color Variables */
:root {
    --pink-primary: #ff6b9d;
    --pink-light: #ffc2d4;
    --pink-dark: #ff1477;
    --purple-accent: #c77dff;
    --cream: #fff5f7;
    --white: #ffffff;
}

/* Override body background */
body {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--purple-accent) 100%) !important;
    font-family: 'Quicksand', sans-serif !important;
}

/* Add sparkle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

/* Site container */
.site {
    background: var(--white) !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 20, 119, 0.3);
    position: relative;
    z-index: 1;
    margin: 20px auto;
    max-width: 1000px;
}

/* Header styling */
.site-header {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-accent));
    border-radius: 20px 20px 0 0;
    padding: 40px 20px !important;
    border-bottom: 3px solid var(--pink-primary);
}

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

.site-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 48px !important;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.3);
    margin-bottom: 10px !important;
}

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

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

.site-description {
    color: var(--white) !important;
    font-size: 18px !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.main-navigation {
    background: var(--pink-primary);
    border-radius: 10px;
    margin-top: 20px;
}

.main-navigation a {
    color: var(--white) !important;
    font-weight: 600;
    padding: 12px 20px;
}

.main-navigation a:hover {
    background: var(--pink-dark);
    color: var(--white) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
    color: var(--pink-primary) !important;
}

.entry-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--pink-primary) !important;
}

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

.entry-title a:hover {
    color: var(--pink-dark) !important;
}

/* Post content */
.entry-content,
.entry-summary {
    font-family: 'Quicksand', sans-serif !important;
    color: #333 !important;
    line-height: 1.8;
}

.entry-content p,
.entry-summary p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

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

a:hover,
a:focus {
    color: var(--pink-dark) !important;
}

/* Buttons and submit buttons */
button,
input[type="button"],
input[type="submit"],
.button {
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark)) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

/* Post meta */
.entry-meta,
.entry-footer {
    color: var(--purple-accent) !important;
    font-size: 14px;
    font-weight: 600;
}

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

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

/* Tags */
.tags-links a {
    background: var(--pink-light);
    color: var(--pink-dark) !important;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 3px;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: var(--pink-primary);
    color: var(--white) !important;
    transform: scale(1.05);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--pink-primary) !important;
    background: rgba(255, 194, 212, 0.2);
    padding: 20px !important;
    border-radius: 10px;
    color: #666 !important;
    font-style: italic;
}

/* Sidebar */
.sidebar,
.widget-area {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.1);
}

.widget-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--pink-primary) !important;
    border-bottom: 2px solid var(--pink-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

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

.widget a:hover {
    color: var(--pink-primary) !important;
}

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

.site-footer a {
    color: var(--white) !important;
    font-weight: 600;
}

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

.site-info {
    color: var(--white) !important;
}

/* Comments */
.comment-list {
    background: rgba(255, 194, 212, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.comment-author {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 700;
    color: var(--pink-primary) !important;
}

.comment-reply-link {
    background: var(--pink-primary) !important;
    color: var(--white) !important;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: none !important;
}

.comment-reply-link:hover {
    background: var(--pink-dark) !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    border: 2px solid var(--pink-light) !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    font-family: 'Quicksand', sans-serif !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(--pink-primary) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.2);
}

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

.pagination a,
.nav-links a {
    background: var(--pink-light);
    color: var(--pink-dark) !important;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 5px;
    font-weight: 600;
    box-shadow: none !important;
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--pink-primary);
    color: var(--white) !important;
}

.pagination .current,
.nav-links .current {
    background: var(--pink-primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 5px;
    font-weight: 600;
}

/* 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;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
    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 35px rgba(255, 107, 157, 0.3);
}

/* 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;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.15);
}

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

.search-submit {
    background: var(--pink-primary) !important;
    color: var(--white) !important;
    border-radius: 0 25px 25px 0 !important;
}

.search-submit:before {
    content: "SEARCH";
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

/* 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: 36px !important;
    }
    
    .site-footer {
        border-radius: 0 0 15px 15px;
    }
}

/* Add some sparkle emojis for fun (optional - remove if too much) */
.entry-title::before {
    content: '✨ ';
    opacity: 0.6;
}

.entry-title::after {
    content: ' ✨';
    opacity: 0.6;
}

/* Make it extra pretty! */
::selection {
    background: var(--pink-light);
    color: var(--pink-dark);
}

::-moz-selection {
    background: var(--pink-light);
    color: var(--pink-dark);
}

/* ========================================
   IMAGE SIZE CONTROL FOR HTMLY POSTS
   Default image sizing for Nevaeh's blog
   ======================================== */

/* 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 */
.alignfull,
img.alignfull {
    max-width: 100% !important;
    width: 100% !important;
    margin: 30px 0 !important;
}

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

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

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

/* Mobile image 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;
    }
    
    .entry-content img[height],
    .entry-summary img[height] {
        max-height: 400px !important;
    }
}

/* Category links styling */
.cat-links a,
.category a {
    background: rgba(199, 125, 255, 0.2);
    color: var(--purple-accent) !important;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 3px;
    border: 1px solid var(--purple-accent);
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.cat-links a:hover,
.category a:hover {
    background: var(--purple-accent);
    color: var(--white) !important;
    transform: scale(1.05);
}

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

/* Archive and category descriptions */
.archive-description,
.taxonomy-description,
.page-description {
    color: #666 !important;
    font-size: 17px;
    line-height: 1.8;
    padding: 20px;
    background: rgba(255, 194, 212, 0.15);
    border-radius: 10px;
    border-left: 4px solid var(--pink-primary);
    margin-bottom: 30px;
}

/* Post lists */
.post-list article,
.hentry {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.1);
}

/* Read more links */
.more-link,
.read-more {
    background: var(--pink-primary) !important;
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.more-link:hover,
.read-more:hover {
    background: var(--pink-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

/* Tables */
table {
    border-color: var(--pink-light) !important;
}

th {
    background: var(--pink-light);
    color: var(--pink-dark) !important;
    font-weight: 700;
}

td {
    border-color: var(--pink-light) !important;
}

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

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

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

/* Code blocks */
code,
pre {
    background: rgba(255, 194, 212, 0.2) !important;
    color: var(--pink-dark) !important;
    border: 1px solid var(--pink-light);
    border-radius: 5px;
}

/* 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;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

/* 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;
}
