/*
Theme Name: Invoice Reader
Description: Modern WordPress theme for Invoice Reader website with AI-powered features
Version: 1.0
Text Domain: invoicereader
*/

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8fafc;
}

/* Modern Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
    padding: 8rem 0 4rem;
    color: white;
}

.hero-image {
    box-shadow: 0 25px 50px -12px rgba(0, 13, 255, 0.25);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Tutorial Post Styles */
.tutorial-header {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.tutorial-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.tutorial-header .tutorial-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: white;
    z-index: 2;
}

/* Reading Progress Bar */
#reading-progress {
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Table of Contents */
#tutorial-toc {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#tutorial-toc::-webkit-scrollbar {
    width: 6px;
}

#tutorial-toc::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#tutorial-toc::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

#tutorial-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tutorial-toc a {
    display: block;
    padding: 0.5rem 0;
    color: #475569;
    text-decoration: none;
    border-right: 2px solid transparent;
    transition: all 0.2s ease;
}

#tutorial-toc a:hover {
    color: #3b82f6;
    border-right-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    padding-right: 0.5rem;
}

#tutorial-toc a.active {
    color: #2563eb;
    font-weight: 600;
    border-right-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

/* Estimated Reading Time */
.reading-time {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #f1f5f9;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1rem;
}

.reading-time i {
    margin-left: 0.5rem;
    color: #3b82f6;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, #0078d7 0%, #0063b1 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0063b1 0%, #004e8a 100%);
    transform: translateY(-2px);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

/* Tutorial Cards */
.tutorial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }
}