/*!
 * Creovate Lite - Main Stylesheet
 * Premium-looking styles for immediate visual impact
 */

/* ==========================================================================
   CSS Variables (Custom Properties)
   ========================================================================== */
:root {
    /* Colors - Default values (Customizer will override) */
    --primary-color: #00B050;
    --secondary-color: #4CAF50;
    --accent-color: #f72585;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-light: #f8f9fa;
    --bg-lighter: #ffffff;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1.5rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-lighter);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-lighter);
    box-shadow: 0 2px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(0, 176, 80, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px var(--shadow-color);
    overflow: hidden;
}

.placeholder-ui {
    width: 100%;
}

.ui-header {
    background: var(--bg-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ui-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ui-dot.red { background: #ff5f57; }
.ui-dot.yellow { background: #ffbd2e; }
.ui-dot.green { background: var(--primary-color); }

.ui-content {
    padding: 2rem;
}

.ui-line {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ui-line.short { width: 60%; }
.ui-line.medium { width: 80%; }
.ui-line.long { width: 100%; }

.ui-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.ui-item {
    height: 80px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

/* ==========================================================================
   Sections Common Styles
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Tools Section
   ========================================================================== */
.tools-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-lighter);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.tool-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    min-height: 60px;
}

.tool-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.tool-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 176, 80, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.blog-card-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    align-self: flex-start;
}

.blog-card-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.widget {
    margin-bottom: var(--spacing-lg);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
}

.widget a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.75);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-widget .theme-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    padding: 0;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    display: inline-block;
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: var(--spacing-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.copyright-text {
    display: inline-block;
    margin-left: 0.25rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0;
    text-decoration: none;
}

.footer-menu a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design - Footer
   ========================================================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .footer-widget {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-widget:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding-top: var(--spacing-sm);
    }
    
    .footer-menu {
        justify-content: center;
        gap: 1rem;
    }
    
    .copyright {
        order: 2;
    }
    
    .footer-menu {
        order: 1;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        gap: var(--spacing-sm);
    }
    
    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-menu li {
        text-align: center;
    }
}
/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tools-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .primary-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}