/*
Theme Name: AI Tech Blog
Theme URI: https://example.com/ai-tech-blog
Author: Antigravity
Author URI: https://example.com
Description: A clean, responsive, single-page AI Tech Blog theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, ai, tech, responsive, grid-layout
Text Domain: ai-tech-blog
*/

:root {
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --primary-color: #6c5ce7;
    --secondary-color: #6c5ce7;
    --accent-color: #00b894;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

.sticky {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    /* Reset for WP compatibility */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    /* In case it becomes an anchor */
    display: inline-block;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
#hero {
    height: 400px;
    /* Updated height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.15) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    /* Uppercase */
}


.fancy-text {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    /* Keeping this for compatibility */
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

#hero p {
    font-size: 1.2rem;
    color: #636e72;
    /* Darker for light mode */
    max-width: 600px;
    margin-bottom: 2rem;
}

.explore-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.explore-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog Sections */
.blog-section {
    padding: 5rem 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.card p {
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Newsletter Section */
#newsletter {
    padding: 4rem 5%;
    background-color: var(--primary-color);
    text-align: center;
    color: white;
    margin-top: 3rem;
}

#newsletter h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

#newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: none;
    width: 300px;
    max-width: 100%;
    font-family: var(--font-body);
}

.newsletter-form button {
    background-color: var(--text-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #000;
}


/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background-color: #f1f2f6;
    /* Slightly darker than main bg */
    border-top: 1px solid var(--border-color);
    color: #636e72;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-branding .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-branding p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-menu,
.social-menu {
    list-style: none;
}

.footer-menu li,
.social-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a,
.social-menu a {
    color: #636e72;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-menu a:hover,
.social-menu a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive adjustment for footer center alignment on mobile if desired, 
   but left-align is usually better for lists. Keeping default grid behavior. */

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        /* Added for mobile safety */
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}