/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #f4f4f9;
    --text-color: #333;
    --heading-color: #1a1a2e;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

/* --- Header & Navigation --- */
.header {
    background: var(--light-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: block;
    width: 150px;
    height: 40px;
    background: url('https://i.ibb.co/K7wz87B/creatorcalc-logo.png') no-repeat center center/contain; /* Placeholder Logo URL */
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* --- Tools Section --- */
.tools-section {
    padding: 4rem 0;
    background-color: var(--gray-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

.tool-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.tool-card.placeholder .tool-link {
    display: none;
}

/* --- Blog Preview Section --- */
.blog-preview-section {
    padding: 4rem 0;
}

.section-subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    color: #666;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    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 20px rgba(0, 0, 0, 0.12);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.category-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

/* --- Footer Section --- */
.footer {
    background: var(--dark-color);
    color: var(--gray-color);
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--light-color);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-logo {
    display: block;
    width: 150px;
    height: 40px;
    margin-bottom: 1rem;
    background: url('https://i.ibb.co/hZxtzP9/creatorcalc-logo-white.png') no-repeat left center/contain; /* White Logo Placeholder */
}


.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* --- Advertisement Styles --- */
.ad-container {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: var(--gray-color);
}

.ad-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.ad-box {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

.ad-leaderboard {
    width: 728px;
    height: 90px;
}

.ad-medium-rectangle {
    width: 300px;
    height: 250px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Responsive Ad Slot */
    .ad-leaderboard {
        width: 300px;
        height: 250px;
    }

    /* Center all content on mobile */
    body, .container, .section-title, .section-subtitle, .hero, .tools-section, .blog-preview-section, .footer {
        text-align: center;
    }
    .tools-grid, .blog-grid, .footer-grid {
        text-align: left; /* Keep card content aligned left */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 1rem auto;
    }
    .footer-col ul {
        padding-left: 0;
    }
}

/* Other Pages Specific Styles */
.page-header {
    background: var(--gray-color);
    padding: 3rem 0;
    text-align: center;
}
.page-content {
    padding: 4rem 0;
}
.page-content .container {
    max-width: 800px;
}
.page-content h2 {
    margin-bottom: 1.5rem;
}
.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content ul {
    list-style: disc;
    padding-left: 20px;
}
.page-content li {
    margin-bottom: 0.5rem;
}

/* Blog Page Specific Styles */
#blog-page .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Article Page Specific Styles */
.article-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--gray-color);
}
.article-header h1 {
    max-width: 800px;
    margin: 0 auto;
}
.article-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.article-body {
    padding: 3rem 0;
}

.article-body .container {
     max-width: 800px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}
.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-body p, .article-body li {
    font-size: 1.1rem;
    color: #333;
}
.article-body a {
    text-decoration: underline;
}
.article-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}