/* === LunaPress Theme | risij.uk Blog === */

/* --- Variables and Reset --- */
:root {
    --primary-color: #e74c3c; /* Bright Magenta/Red */
    --primary-color-glow: rgba(231, 76, 60, 0.7);
    --background-color: #2c3e50; /* Midnight Blue */
    --card-background-color: #34495e; /* Wet Asphalt */
    --header-footer-bg: #22313f; /* Darker Blue */
    --text-color: #ecf0f1; /* Clouds (Off-white) */
    --heading-color: #ffffff;
    --border-color: #46627f;
    --font-family-heading: 'Lobster', cursive;
    --font-family-body: 'Montserrat', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Montserrat:wght@400;700&display=swap');

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #ff7968;
    text-shadow: 0 0 8px var(--primary-color-glow);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    line-height: 1.3;
    font-weight: 400; /* Lobster font is naturally bold */
    margin-bottom: 1rem;
    color: var(--heading-color);
    letter-spacing: 1px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1.5rem; }

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-image: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #FFFFFF;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-family-body);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.5);
    text-decoration: none;
    color: #FFFFFF;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(34, 49, 63, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    color: var(--heading-color);
}

.logo a:hover {
    text-decoration: none;
    color: #ffffff;
}

.logo a span {
    font-family: var(--font-family-body);
    font-weight: 400;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Main Layout --- */
.main-content-area {
    padding: 4rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr 340px;
    }
}

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--primary-color-glow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.7;
}

/* --- Articles Grid --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--primary-color-glow);
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    color: var(--heading-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background-color: var(--card-background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 1rem;
}

.widget ul li a {
    font-weight: 700;
}

.widget p {
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

.footer-logo a {
    color: var(--heading-color);
    font-family: var(--font-family-heading);
    font-size: 2rem;
}
.footer-logo a:hover {
    text-decoration: none;
    color: #ffffff;
}

.footer-widget h4 {
    color: var(--heading-color);
    font-family: var(--font-family-heading);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--text-color);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #bdc3c7; /* Silver */
}

/* --- Article Page Specifics --- */
.article-full {
    background-color: var(--card-background-color);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-color);
    font-family: var(--font-family-body);
}

.article-meta span {
    margin: 0 1rem;
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 2.4rem;
}

.article-content h3 {
    margin-top: 2.5rem;
    font-size: 2rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #ffffff;
    background-color: #2c3e50;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.cta-section {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-top: 3.5rem;
}
.cta-section h3 {
    font-size: 2.2rem;
}

/* --- Sub-pages (About, Contact) --- */
.page-content {
    background-color: var(--card-background-color);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
