/* ========================================
CSS STYLES - COLORFUL UPDATE
File: style.css
========================================
*/

:root {
    --dark-bg: #1A0B2E;         /* Rich Dark Purple */
    --card-bg: #2A1A45;         /* Lighter Purple */
    --border-color: #4A3A65;
    --primary-text: #EAE0F8;     /* Light Lavender Text */
    --heading-text: #FFFFFF;       /* White Text */
    --font-family: 'Inter', sans-serif;

    /* Accent Colors for Icons & Gradients */
    --grad-start: #F72585; /* Vibrant Pink */
    --grad-mid: #7209B7;   /* Bright Purple */
    --grad-end: #4361EE;   /* Royal Blue */
    
    --icon-color-1: #F72585;
    --icon-color-2: #7209B7;
    --icon-color-3: #4CC9F0; /* Cyan */
    --icon-color-4: #4361EE;
    --icon-color-5: #F48C06; /* Orange */
    --icon-color-6: #9EF01A; /* Lime Green */
    --icon-color-7: #ff4d6d; /* Bright Red-Pink */
    --icon-color-8: #ffd166; /* Bright Yellow */
    --icon-color-9: #06d6a0; /* Bright Teal */
    /* -- NEW AI TOOL ICON -- */
    --icon-color-10: #fefae0; /* Cream White for AI Star */

}

/* Basic Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--primary-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Logo Styles */
.main-header {
    background-color: rgba(26, 11, 46, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}
.logo:hover svg {
    transform: rotate(15deg) scale(1.1);
}

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

.main-nav a {
    color: var(--primary-text);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--grad-start);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem;
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--heading-text);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.hero-cta {
    background-image: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 100%);
    color: var(--heading-text);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: inline-block;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.25);
}

/* Main Layout (Two Columns) */
.main-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}
.tools-section {
    flex: 3;
}
.blog-sidebar {
    flex: 1;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

/* Tools Section */
.tools-section h2, .blog-sidebar h2 {
    font-size: 2rem;
    color: var(--heading-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--grad-start), var(--grad-mid)) 1;
    display: inline-block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--primary-text);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex; 
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--grad-mid);
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.5rem;
    color: var(--heading-text);
    margin-bottom: 0.5rem;
}
.tool-card p {
    font-size: 1rem;
    flex-grow: 1; 
    margin-bottom: 1.5rem;
}

.tool-cta {
    font-weight: 700;
    color: var(--primary-text);
    transition: color 0.3s ease;
    margin-top: auto;
}
.tool-card:hover .tool-cta {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Blog Sidebar */
.blog-post-item {
    margin-bottom: 1.5rem;
}
.blog-post-item:last-child {
    margin-bottom: 0;
}
.blog-post-item a {
    text-decoration: none;
}
.blog-post-item h4 {
    font-size: 1.1rem;
    color: var(--heading-text);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}
.blog-post-item a:hover h4 {
    color: var(--grad-start);
}
.blog-post-item span {
    font-size: 0.9rem;
    color: #9376C4; /* Muted purple */
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .main-nav {
        display: none;
    }
}
