/* Child theme for Natalie Winters News */
/* This CSS file overrides the main theme colors */

:root {
    /* Primary Colors */
    --primary-color: #1E3A8A;          /* Trustworthy Blue - main brand color */
    --secondary-color: #60A5FA;        /* Soft Sky Blue - friendly accent */
    --accent-color: #2DD4BF;           /* Playful Teal - fun elements */
    --baby-blue: #F8FBFF;             /* Very Light Blue - almost white background */
    
    /* Text Colors */
    --text-primary: #1F2937;           /* Dark Gray - main text */
    --text-secondary: #4B5563;         /* Medium Gray - secondary text */
    --text-light: #FFFFFF;             /* Crisp White - light text */
    
    /* Background Colors */
    --bg-primary: #FFFFFF;             /* Crisp White - main background */
    --bg-secondary: #F3F4F6;           /* Light Gray - secondary background */
    --bg-dark: #1E3A8A;               /* Trustworthy Blue - dark sections */
    
    /* Border & Accent Colors */
    --border-light: #D1D5DB;          /* Warm Gray - subtle borders */
    --border-medium: #60A5FA;         /* Soft Sky Blue - medium emphasis */
    --border-dark: #1E3A8A;           /* Trustworthy Blue - strong borders */
    --accent-pop: #F87171;            /* Bright Coral - special highlights */
}

/* Header Styles */
#header {
    background-color: var(--bg-dark);
    border-bottom: 3px solid var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Override header background during preload */
body.is-preload #header:after {
    background: var(--bg-dark) !important;
    opacity: 1 !important;
}

body.homepage.is-preload #header:after {
    background: var(--bg-dark) !important;
    opacity: 0.85 !important;
}

/* Ensure smooth transition after preload */
#header:after {
    background: var(--bg-dark) !important;
    transition: opacity 2.5s ease-in-out !important;
}

#header .inner h1 a {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

#nav {
    background: linear-gradient(to bottom, var(--bg-dark), rgba(30, 58, 138, 0.95));
    border-bottom: 1px solid var(--secondary-color);
}

/* Basic nav styles */
#nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: none;
    padding: 0.85em 1em;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover state for nav links */
#nav ul li a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(45, 212, 191, 0.3);
    border-radius: 4px;
    text-decoration: none;
    border-bottom: none;
}

/* Active/current state */
#nav ul li.active a,
#nav ul li.current a {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(96, 165, 250, 0.3);
    text-decoration: none;
    border-bottom: none;
}

/* Mobile nav panel */
#navPanel {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

#navPanel nav {
    padding: 0.5em 1em;
}

#navPanel .link {
    color: var(--text-light) !important;
    border-top: solid 1px rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
}

#navPanel .link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--accent-color) !important;
}

#navPanel .link:first-child {
    border-top: 0 !important;
}

/* Main Content */
.wrapper.style2,
.wrapper,
#content,
#app .wrapper,
#app .container,
.article-list,
#main {
    background-color: var(--baby-blue);
}

/* Ensure content containers maintain white background */
.post,
.article-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5em;
    padding: 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

article header h2 {
    color: var(--primary-color);
}

/* Footer Styles */
#footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 3px solid var(--accent-color);
}

#footer .label {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#footer .label:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

#footer a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

#footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Links */
a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Links within paragraphs */
p a, p strong {
    color: var(--primary-color) !important;
}

p a:hover {
    color: var(--accent-color) !important;
}

/* Buttons */
.button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button.special {
    background-color: var(--accent-pop);
}

/* Labels and Tags */
.label {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post header h3 a {
    color: var(--primary-color);
    font-weight: 600;
}

.post header h3 a:hover {
    color: var(--secondary-color);
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Icons */
.icons a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Additional Styles */
hr {
    border-color: var(--border-light);
    margin: 2em 0;
}

.divided > li {
    border-color: var(--border-light);
    transition: background-color 0.3s ease;
}

.divided > li:hover {
    background-color: rgba(96, 165, 250, 0.05);
}

/* Special Elements */
.highlight {
    color: var(--accent-pop);
}

.badge {
    background-color: var(--accent-pop);
    color: var(--text-light);
    padding: 0.2em 0.6em;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Footer Info Section Styles */
#footer .post.stub {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

#footer .post.stub:hover {
    transform: none;
    box-shadow: none;
}

#footer .post.stub header h3 a {
    color: var(--secondary-color);
}

#footer .post.stub header h3 a:hover {
    color: var(--accent-color);
}

#footer .post.stub .timestamp {
    color: var(--text-light);
    opacity: 0.9;
}

/* Ensure divided list items in footer are transparent */
#footer .divided > li {
    background: transparent;
}

#footer .divided > li:hover {
    background: transparent;
}

/* Footer Section Headers */
#footer section header h2 .label {
    background: transparent;
    color: var(--text-light);
    padding: 0;
    font-weight: 600;
    pointer-events: none;
}

#footer section header h2 .label:hover {
    transform: none;
    color: var(--text-light);
    background: transparent;
    cursor: default;
}

/* Ensure footer headers don't have hover effects */
#footer section header h2,
#footer section header h2 a {
    color: var(--text-light) !important;
    pointer-events: none;
    cursor: default;
}

#footer section header h2:hover,
#footer section header h2 a:hover {
    color: var(--text-light) !important;
    background: transparent !important;
    transform: none !important;
}

/* FontAwesome Icon Colors - More specific overrides */
#footer .icons a,
.icons a {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease !important;
}

#footer .icons a:hover,
.icons a:hover {
    color: var(--accent-color) !important;
}

#footer .icons a:before,
.icons a:before,
.icon.brands:before,
.fa-mug-hot:before {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease !important;
}

#footer .icons a:hover:before,
.icons a:hover:before,
.icon.brands:hover:before,
.fa-mug-hot:hover:before {
    color: var(--accent-color) !important;
}

/* Ensure no pink colors on load */
body.is-preload .icon.brands:before,
body.is-preload .fa-mug-hot:before {
    color: var(--secondary-color) !important;
}

body.is-preload .icon.brands:hover:before,
body.is-preload .fa-mug-hot:hover:before {
    color: var(--accent-color) !important;
}

/* Override any default icon animations */
@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.icon.brands {
    text-decoration: none;
    opacity: 1;
    color: var(--secondary-color) !important;
}

.icon.brands:hover {
    color: var(--accent-color) !important;
}

.inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2em;
    margin-top: 15vh;
}

@media screen and (min-width: 1681px) {
    .inner {
        padding: 0 3em;
        margin-top: 20vh;
    }
}

@media screen and (max-width: 980px) {
    .inner {
        padding: 0 1.5em;
        margin-top: 12vh;
    }
}

@media screen and (max-width: 736px) {
    .inner {
        padding: 0 1em;
        margin-top: 10vh;
    }
}

.inner header {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2em;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    max-width: 800px;
    margin: 0 auto;
}

.inner header h1 a {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.inner header p {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
    font-size: 1.2em;
}

#header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

/* Target the actual link element */
html body #nav ul li a,
html body #nav ul li a:hover,
html body #nav ul li a:focus,
html body #nav ul li a:active,
html body #nav ul li.active a,
html body #nav ul li.current a {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    text-decoration-style: none !important;
    -webkit-text-decoration-style: none !important;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
    border-bottom: none !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Target any possible spans inside the links */
html body #nav ul li a span,
html body #nav ul li a:hover span {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    text-decoration-style: none !important;
    -webkit-text-decoration-style: none !important;
    border-bottom: none !important;
    position: static !important;
}

/* Heading Styles */
h1, h2, h3 {
    color: var(--primary-blue) !important;
}

/* Strong text styles */
strong {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

h1 a {
    color: var(--primary-blue) !important;
}

h1 a:hover {
    color: var(--secondary-blue) !important;
}

h2 span.label {
    color: var(--primary-blue) !important;
}

/* Article specific heading styles */
.article-item h3 {
    color: var(--primary-blue) !important;
}

.article-item h3:hover {
    color: var(--secondary-blue) !important;
}

/* Footer section headers */
#footer section header h2 {
    color: var(--primary-blue) !important;
}

#footer section header h2 span.label {
    color: var(--primary-blue) !important;
}

/* Main content headers */
#main header h2 {
    color: var(--primary-blue) !important;
}

#main header p {
    color: var(--text-dark) !important;
}

/* Contact section header */
.contact header h3 {
    color: var(--primary-blue) !important;
}

/* Additional h3 styles */
.post header h3 a {
    color: var(--primary-blue) !important;
}

.post header h3 a:hover {
    color: var(--secondary-blue) !important;
}

#footer .post.stub header h3 a {
    color: var(--primary-blue) !important;
}

#footer .post.stub header h3 a:hover {
    color: var(--secondary-blue) !important;
}

/* Latest Articles Grid */
#latest-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding: 2em 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 980px) {
    #latest-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 736px) {
    #latest-articles {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.4em;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--accent-color) !important;
}

.article-card .date {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 1em;
}

.article-card .excerpt {
    color: var(--text-primary);
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.article-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.article-card .read-more:hover {
    color: var(--accent-color);
}

.article-card .read-more em {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.article-card .read-more:hover em {
    transform: translateX(5px);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2em;
    color: var(--text-secondary);
    font-style: italic;
}

/* Article Title Styles */
.article-title {
    margin: 0 0 0.8em 0;
    font-size: 1.8em;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.article-title a:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

/* Article List Container */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
    padding: 2em;
    max-width: 1400px;
    margin: 0 auto;
}

/* Article Card Styles */
.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.8em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.article-card h3 {
    margin: 0 0 0.8em 0;
    font-size: clamp(1.2em, 2vw, 1.6em);
    line-height: 1.4;
    color: var(--primary-color);
}

.article-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--accent-color);
}

.article-card .date {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 1em;
    display: block;
}

.article-card .excerpt {
    color: var(--text-primary);
    margin-bottom: 1.5em;
    flex-grow: 1;
    font-size: clamp(0.9em, 1.5vw, 1em);
    line-height: 1.6;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    margin-top: auto;
}

.article-card .read-more:hover {
    color: var(--primary-color);
    gap: 0.8em;
}

.article-card .read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.article-card .read-more:hover::after {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media screen and (max-width: 980px) {
    .article-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 1.5em;
        gap: 1.5em;
    }
    
    .article-card {
        padding: 1.5em;
    }
}

@media screen and (max-width: 736px) {
    .article-list {
        grid-template-columns: 1fr;
        padding: 1em;
        gap: 1em;
    }
    
    .article-card {
        padding: 1.2em;
    }
    
    .article-card h3 {
        font-size: 1.3em;
    }
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2em;
    color: var(--text-secondary);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Empty state */
.no-articles {
    text-align: center;
    padding: 3em;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    font-style: italic;
}

/* Warroom Index Styles */
#app .wrapper {
    background-color: var(--baby-blue);
    padding: 2em 0;
}

#app .container {
    background-color: var(--baby-blue);
}

.article-list {
    background-color: var(--baby-blue);
}

.article-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5em;
    padding: 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

ul.icons {
    background: transparent;
    padding: 1em;
    border-radius: 8px;
}

ul.icons li {
    transition: all 0.2s ease;
}

ul.icons li:hover {
    transform: scale(1.02);
}

ul.icons li:active {
    transform: scale(0.98);
}

#footer .tweet .timestamp {
    color: var(--text-light);
    opacity: 0.9;
}

#footer .post.stub .timestamp {
    color: var(--text-light);
    opacity: 0.9;
} 