/* AI Solutions Ireland - News Theme */
:root {
    --primary-color: #00f2ea;
    --secondary-color: #7b2cbf;
    --bg-color: #050510;
    --card-bg: #0a0a1f;
    --text-color: #ffffff;
    --heading-color: #ffffff;
    --nav-bg: rgba(5, 5, 16, 0.95);
    --transition-speed: 0.3s;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: #ccc;
    background-color: var(--bg-color);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
.header {
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Use FontAwesome icon if image missing in code update */
.logo i {
    color: var(--primary-color);
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
}

/* Main content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle at center, rgba(123, 44, 191, 0.2) 0%, transparent 70%);
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts section */
.posts-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #ccc;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--primary-color);
    color: #000;
}

/* Footer */
.footer {
    background: #000;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    color: #aaa;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
}

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

/* Single Post */
.single-post {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-header .post-title {
    color: #fff;
}

.post-content {
    color: #ddd;
    text-align: justify;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-representation-tag {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    padding: 0.5rem 1rem;
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
}

/* Ensure images inside content also scale */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.post-content h2,
.post-content h3 {
    color: #fff;
    margin-top: 20px;
}

.post-content a {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .single-post {
        padding: 0.8rem;
        border-radius: 10px;
    }

    .post-header .post-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 10px;
    }

    .main {
        padding: 1rem 0;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: rgba(10, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}