/* Encore360 Hugo Theme - Tailwind-based Styles */

/* Import Tailwind */
@import url('https://cdn.tailwindcss.com');

/* Custom Tailwind Config embedded in styles */
@layer base {
    :root {
        --brand-orange: #F36E1F;
        --brand-dark: #0B0F19;
        --brand-navy: #111827;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
}

/* Glass Navigation Effects */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Overlay Effect */
.hero-overlay {
    background: linear-gradient(to right, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.9) 60%, rgba(11, 15, 25, 0.4) 100%);
}

/* Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--brand-orange);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Code Block Copy Button */
.copy-code-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 600;
}

pre:hover .copy-code-button {
    opacity: 1;
}

.copy-code-button:hover {
    background: #D25A15;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
}

/* Category Dropdown */
.category-dropdown.active .category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop hover */
@media (min-width: 640px) {
    .category-dropdown:hover .category-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Close dropdown when clicking outside */
.category-menu {
    visibility: hidden;
}

/* Post Card Images - Fixed height on mobile */
.post-card .post-image {
    height: 200px;
}

@media (min-width: 768px) {
    .post-card .post-image {
        height: auto;
        min-height: 100%;
    }
}

/* Smooth Hover Transitions */
a, button {
    transition: all 0.2s ease;
}

/* Post Card Hover Effects */
.post-card {
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-card img {
    transition: transform 0.3s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

/* Tag Hover Effects */
.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--brand-orange);
    color: white;
}

/* Prose Styles for Blog Content */
.prose {
    max-width: 65ch;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--brand-dark);
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
    line-height: 1.4;
}

.prose h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.prose h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #475569;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-position: outside;
}

.prose ul {
    list-style-type: disc !important;
}

.prose ol {
    list-style-type: decimal !important;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    display: list-item !important;
}

.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose ol ol {
    list-style-type: lower-alpha !important;
}

.prose ol ol ol {
    list-style-type: lower-roman !important;
}

.prose blockquote {
    border-left: 4px solid var(--brand-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
}

.prose code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--brand-dark);
}

.prose pre {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.prose pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.prose a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    color: #D25A15;
    text-decoration: underline;
}

.prose img {
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.prose strong {
    font-weight: 700;
    color: var(--brand-dark);
}

.prose em {
    font-style: italic;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.875rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .prose h4 {
        font-size: 1.125rem;
    }

    .prose h5 {
        font-size: 1rem;
    }

    .prose h6 {
        font-size: 0.875rem;
    }
}
