/*
Theme Name: Leverage AI Theme v7 Fixed
Theme URI: https://leverageai.com.au
Author: Leverage AI Development Team
Author URI: https://leverageai.com.au
Description: A modern, high-converting WordPress theme for Leverage AI business transformation services. Features a dynamic landing page design with AI-focused content and seamless blog integration. Fixed Tailwind CSS loading and visual artifacts.
Version: 6.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leverage-ai
Tags: business, ai, consulting, blog, responsive, tailwind
*/

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2563eb;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Success message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error message */
.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

/* Pulse animation for CTAs */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WordPress Navigation Menu Styles */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Dropdown menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    z-index: 999;
}

.main-navigation li:hover > ul {
    display: block;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Blog Post Styles */
.blog-post {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Single Post Styles */
.single-post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.single-post-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    line-height: 1.8;
}

.single-post-content h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 2rem 0 1rem;
    color: #1a202c;
}

.single-post-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.5rem 0 0.75rem;
    color: #2d3748;
}

.single-post-content p {
    margin-bottom: 1.25rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

.single-post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
}

/* Archive Page Styles */
.archive-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a202c;
}

.archive-description {
    color: #4a5568;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.pagination .current {
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404-title {
    font-size: 8rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.error-404-message {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}