
/* --- DarkFlow Theme --- */
/* --- Tone: Friendly & Casual --- */
/* --- Font: Playfair Display (Headings), Lato (Body) --- */

:root {
    --primary-color: #00E5FF; /* Vivid Cyan */
    --primary-hover-color: #00B8D4;
    --background-color: #121212;
    --card-background-color: #1E1E1E;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --muted-text-color: #a0a0a0;
    --border-color: #333333;
    --shadow-color: rgba(0, 229, 255, 0.1);
    --font-family-body: 'Lato', sans-serif;
    --font-family-heading: 'Playfair Display', serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

#container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 20px;
}
ul { list-style-type: disc; }
ol { list-style-type: decimal; }

/* --- Header & Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--font-family-heading);
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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

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

/* --- Main Layout --- */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

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

.main-area {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--card-background-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero-section h1 {
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--muted-text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Articles Grid --- */
.articles-section h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

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

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

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: saturate(1.1);
}

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

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--muted-text-color);
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-start;
}

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

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

.widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.2rem;
    font-family: var(--font-family-body);
    font-weight: 700;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.widget ul li a {
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    color: var(--text-color);
}
.widget ul li a:hover {
    color: var(--primary-color);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-text-color);
}
.footer-links a:hover {
    color: var(--primary-color);
}

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

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
    font-size: 3.2rem;
}
.article-meta {
    margin-top: 1rem;
    color: var(--muted-text-color);
    font-size: 0.9rem;
}
.article-meta span {
    margin: 0 0.5rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content .supermarket-logo {
    display: block;
    max-width: 150px;
    height: auto;
    margin: 1rem auto;
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 5px;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover-color));
    color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}
.cta-section h3 {
    color: var(--background-color);
    font-family: var(--font-family-heading);
    border: none;
}
.cta-section p {
    color: #1a202c;
}
.cta-section a.cta-button {
    display: inline-block;
    background-color: white;
    color: #121212;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}
.cta-section a.cta-button:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}


/* --- Other Pages (About, Contact, Offers) --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-content {
    background: var(--card-background-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}
.offer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s;
}
.offer-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.offer-item img {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}
.offer-item span {
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .site-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    .logo { margin-bottom: 1rem; }
    .main-nav ul { gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
    .main-nav a { font-size: 0.9rem; }
    
    .main-content {
        padding-top: 1rem;
    }
    .hero-section {
        padding: 2rem 1.5rem;
    }
    .article-header h1 {
        font-size: 2.4rem;
    }
    .article-full, .page-content {
        padding: 1.5rem;
    }
}
