/* Landing Page Styles */
/* Extracted from landing page templates for use with Rails layout */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.landing-content {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 18px;
}

/* ==========================================================================
   Nav Logo (smaller Asana-style)
   ========================================================================== */

.logo-img-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ==========================================================================
   Blog Index Styles
   ========================================================================== */

.hero {
    background-color: #f3f4f6;  /* bg-gray-100 to match page background */
    padding: 40px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.blog-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-title-link,
.blog-excerpt-link {
    text-decoration: none;
    color: inherit;
}

.blog-title-link:hover .blog-title {
    color: #3b82f6;
}

.blog-excerpt-link:hover .blog-excerpt {
    color: #4b5563;
}

.blog-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.blog-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Blog Post Styles
   ========================================================================== */

.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.content .subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.date {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Post Content Typography */
.post-content {
    margin-bottom: 3rem;
}

.post-content h1 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1e40af;
    font-weight: 700;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    line-height: 1.4;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #8b5cf6;
    font-weight: 600;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: #f59e0b;
    font-weight: 600;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

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

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1e40af;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    display: block;
}

.post-content table thead {
    background: #e2e8f0;
}

.post-content table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.post-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-content table tbody tr:hover {
    background: #f8fafc;
}

.post-content table th[align="right"],
.post-content table td[align="right"] {
    text-align: right;
}

.post-content table th[align="center"],
.post-content table td[align="center"] {
    text-align: center;
}

/* Blockquotes */
.post-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo .logo-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e2e8f0;
}

.footer-logo .logo-tagline {
    font-size: 0.75rem;
    font-weight: normal;
    color: #9ca3af;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a.linkedin-icon {
    background: #0077b5;
    border: 1px solid #0077b5;
    color: white;
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.footer-social a:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.footer-social a.linkedin-icon:hover {
    background: #005885;
    border-color: #005885;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3b82f6;
}

.contact-item span:not(.contact-icon) {
    color: #94a3b8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .content h1 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links ul {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }
}
