/* YB Starter - Startup Funding & Bootstrap Blog */
/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --secondary-dark: #047857;
    --white: #ffffff;
    --charcoal: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--secondary); }

.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.nav a {
    color: var(--charcoal);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a:hover, .nav a.active { color: var(--primary); }

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after, .nav a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

.card-body { padding: 1.5rem; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.card-meta i { color: var(--primary); }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

.card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link i { transition: var(--transition); }
.card-link:hover i { transform: translateX(4px); }

/* Category Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-funding { background: #dbeafe; color: #1e40af; }
.badge-crowdfunding { background: #d1fae5; color: #047857; }
.badge-vc { background: #fef3c7; color: #92400e; }
.badge-bootstrap { background: #f3e8ff; color: #7c3aed; }
.badge-growth { background: #fee2e2; color: #991b1b; }
.badge-practical { background: #e0e7ff; color: #3730a3; }

/* Section */
.section { padding: 4rem 0; }
.section-gray { background: var(--gray-50); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--gray-600); font-size: 1.125rem; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .featured-article { grid-template-columns: 1.2fr 1fr; }
}

.featured-article img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .badge { margin-bottom: 1rem; align-self: flex-start; }
.featured-content h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.featured-content .card-meta { margin-bottom: 1rem; }

/* Categories Section */
.categories { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 180px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-icon.blue { background: #dbeafe; color: var(--primary); }
.category-icon.green { background: #d1fae5; color: var(--secondary); }
.category-icon.purple { background: #f3e8ff; color: #7c3aed; }
.category-icon.orange { background: #fef3c7; color: #d97706; }
.category-icon.red { background: #fee2e2; color: #dc2626; }
.category-icon.indigo { background: #e0e7ff; color: #4f46e5; }

.category-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.category-card p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter p { opacity: 0.8; margin-bottom: 2rem; }

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form input:focus { outline: 2px solid var(--primary); }

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--gray-400); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: var(--transition);
}
.footer-social a:hover { color: var(--white); }

/* Article Page */
.article-header {
    padding: 3rem 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.article-header .container { max-width: 800px; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    color: var(--gray-600);
}

.article-meta span { display: flex; align-items: center; gap: 0.5rem; }
.article-meta i { color: var(--primary); }

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.article-content h3 { color: var(--gray-700); margin-top: 1.5rem; }

.article-content p { font-size: 1.1rem; line-height: 1.8; color: var(--gray-700); }

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

/* Author Box */
.author-box {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 { margin-bottom: 0.25rem; }
.author-info p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0.5rem; }
.author-social { display: flex; gap: 0.75rem; }
.author-social a { color: var(--gray-500); font-size: 1.125rem; }
.author-social a:hover { color: var(--primary); }

/* Related Posts */
.related-posts {
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
    margin-top: 3rem;
}

.related-posts h3 { margin-bottom: 1.5rem; }

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Blog Page */
.blog-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 9999px;
    background: var(--white);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.legal-content h2 {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sitemap-col h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sitemap-col ul { list-style: none; }
.sitemap-col li { margin-bottom: 0.5rem; }
.sitemap-col a { color: var(--gray-700); }
.sitemap-col a:hover { color: var(--primary); }

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--gray-600); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-label { color: var(--gray-600); font-size: 0.95rem; margin-top: 0.25rem; }

/* Tags */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 9999px;
    font-size: 0.875rem;
}

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

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-600);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .current { background: var(--primary); color: var(--white); }
.pagination .disabled { opacity: 0.5; cursor: not-allowed; }

/* Search */
.search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 9999px;
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-muted { color: var(--gray-500); }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    .nav.active a { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
    .mobile-toggle { display: block; }
    .hero { padding: 3rem 0; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-content .btn { width: 100%; justify-content: center; }
    .author-box { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .author-social { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 3rem 0; }
    .hero-buttons { flex-direction: column; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input, .newsletter-form button { width: 100%; }
}
