/* Blog Layout Common Styles */

/* Color Variables */
:root {
    --bg-light: #F3F8FE;
    --surface: #FFFFFF;
    --border: #E5EAF1;
    --text: #1B1F29;
    --text-muted: #5F6B7C;
    --primary: #00A37E;
    --primary-dk: #008A6A;
    --accent: #E58F5F;
    --accent-dk: #CC784A;
    --info: #85A4D0;
    --dark: #151B24;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Mobile Menu Animation */
.mobile-menu-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-visible {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Get Started Button Fix */
.get-started-btn {
    background: var(--accent);
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.get-started-btn:hover {
    background: var(--accent-dk);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 143, 95, 0.3);
}

.get-started-btn:hover::before {
    transform: translateX(0);
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: transform 0.6s;
}

/* Mobile Menu Enhanced Styling */
#mobile-menu .flex {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-menu-item span {
    font-size: 16px;
    transition: color 0.3s ease;
}

.mobile-menu-item:hover {
    background: rgba(0, 163, 126, 0.05);
    color: var(--primary);
    transform: translateX(2px);
}

.mobile-menu-item:hover i {
    color: var(--primary);
}

.mobile-menu-item.active {
    background: rgba(0, 163, 126, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-item.active i {
    color: var(--primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dk);
}

/* Custom Tailwind Extensions */
.bg-primary {
    background-color: var(--primary);
}

.bg-primary-dk {
    background-color: var(--primary-dk);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-accent-dk {
    background-color: var(--accent-dk);
}

.bg-info {
    background-color: var(--info);
}

.bg-surface {
    background-color: var(--surface);
}

.bg-bg-light {
    background-color: var(--bg-light);
}

.text-primary {
    color: var(--primary);
}

.text-primary-dk {
    color: var(--primary-dk);
}

.text-accent {
    color: var(--accent);
}

.text-accent-dk {
    color: var(--accent-dk);
}

.text-info {
    color: var(--info);
}

.text-text {
    color: var(--text);
}

.text-text-muted {
    color: var(--text-muted);
}

.border-primary {
    border-color: var(--primary);
}

.border-border {
    border-color: var(--border);
}

/* Animation utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Blog Navigation */
.blog-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Blog Footer */
.blog-footer {
    background: var(--dark);
    color: white;
}

.blog-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.blog-footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* Footer Styles */
.blog-footer {
    background-color: var(--dark);
    color: white;
}

.blog-footer h3 {
    color: white !important;
    font-weight: 600;
}

.blog-footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.blog-footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.blog-footer a:hover {
    color: white !important;
}

.blog-footer input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.blog-footer input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-bottom a:hover {
    color: white !important;
}

/* Blog Navigation Styling */
.blog-nav a {
    transition: color 0.3s ease;
}

.blog-nav a:hover {
    color: var(--primary) !important;
}

/* Get Started Button Override - Keep Text White */
.blog-nav a.bg-primary {
    color: white !important;
}

.blog-nav a.bg-primary:hover {
    color: white !important;
    background-color: var(--primary-dk) !important;
}

/* Blog Content Styling */
.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.filter-tab:hover {
    background-color: rgba(0, 163, 126, 0.05);
    color: var(--primary);
    border-color: rgba(0, 163, 126, 0.2);
}

.filter-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 163, 126, 0.3);
}

/* Sidebar Styling */
.sidebar-widget {
    background-color: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding-right: 3rem;
    padding-left: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(0, 163, 126, 0.2);
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary);
}

.category-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-link:hover {
    color: var(--primary);
    background-color: rgba(0, 163, 126, 0.05);
}

.category-count {
    background-color: var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.category-link:hover .category-count {
    background-color: rgba(0, 163, 126, 0.2);
    color: var(--primary);
}

.popular-post {
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.popular-post:hover {
    background-color: rgba(0, 163, 126, 0.05);
}

.tag {
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 163, 126, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

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

/* Blog Post Cards */
.blog-post-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

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

.featured-post-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

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

/* Load More Button */
.load-more-btn {
    background-color: rgba(0, 163, 126, 0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 163, 126, 0.2);
    transform: scale(1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 163, 126, 0.3);
}

/* Newsletter CTA in Sidebar */
.newsletter-cta {
    border: 0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.newsletter-btn {
    background-color: white;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.newsletter-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.resource-link {
    display: block;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.resource-link:hover {
    background-color: rgba(0, 163, 126, 0.05);
}

/* Featured Posts Section */
.featured-posts-section {
    background-color: var(--surface);
}

/* Blog Post Content Cards */
.blog-post-card .bg-surface {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.blog-post-card:hover .bg-surface {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
} 