
/* ---
   TechNoir Theme for cataloguethisweek.com Blog
   Language: Romanian
   Font: Fira Code
   Tone: Tech / Futuristic
--- */

/* --- Root Variables & Global Reset --- */
:root {
    --bg-deep-space: #0d0221;
    --bg-surface: #1a103c;
    --primary-text: #e0e6f1;
    --secondary-text: #938db5;
    --accent-cyan: #00f6ff;
    --accent-cyan-hover: #9effff;
    --border-color: rgba(0, 246, 255, 0.2);
    --shadow-glow: rgba(0, 246, 255, 0.3);
    --font-family: 'Fira Code', monospace;
}

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

/* --- Base & Typography --- */
body {
    font-family: var(--font-family);
    background-color: var(--bg-deep-space);
    color: var(--primary-text);
    line-height: 1.8;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 0 5px var(--shadow-glow);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.25rem; }

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

a:hover, a:focus {
    color: var(--accent-cyan-hover);
    text-shadow: 0 0 8px var(--shadow-glow);
}

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

li::marker {
    color: var(--accent-cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.main-layout {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.site-title a {
    color: #fff;
}
.site-title a:hover {
    color: var(--accent-cyan);
}

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

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: none;
    position: relative;
}

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

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(13, 2, 33, 0.8), rgba(13, 2, 33, 0.8)), url('https://picsum.photos/seed/tech-bg/1200/400') center/cover no-repeat;
    padding: 5rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

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

/* --- Article Grid --- */
.article-grid {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    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 0 25px var(--shadow-glow);
}

.article-card-image-wrapper {
    overflow: hidden;
    height: 200px;
}
.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-image {
    transform: scale(1.05);
}

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

.article-card-content h2 {
    font-size: 1.3rem;
}

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

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-deep-space);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-widget ul li a {
    display: block;
    padding: 0.5rem 0;
    transition: padding-left 0.3s ease;
}
.sidebar-widget ul li a::before {
    content: '>> ';
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-widget ul li a:hover {
    padding-left: 0.5rem;
    text-decoration: none;
}
.sidebar-widget ul li a:hover::before {
    opacity: 1;
}

/* --- Footer --- */
.site-footer {
    background-color: #05010d;
    color: var(--secondary-text);
    padding: 2.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 3rem;
}

.article-meta {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-family: var(--font-family);
    letter-spacing: 1px;
}

.article-content .cta-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--accent-cyan);
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--shadow-glow);
}

.article-content .cta-section h3 {
    color: var(--accent-cyan);
}

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

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-glow);
}

.offer-card img {
    margin: 0 auto 1rem;
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
    border: none;
}
.offer-card h3 {
    color: var(--primary-text);
    font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    .article-header h1 { font-size: 2.5rem; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .main-layout.article-page-layout {
        grid-template-columns: 3fr 1fr;
    }
}
