/* Refined Jekyll Theme */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 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);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 0 50px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.site-title {
    font-size: 3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-subtitle {
    color: var(--text-light);
    font-size: 1.15em;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Main Content */
.site-content {
    flex: 1;
    padding: 60px 0 80px;
}

.blog-categories {
    width: 100%;
}

.blog-category {
    margin-bottom: 70px;
}

.blog-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 20px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

/* Tablet and Desktop - Multi-column layout */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.blog-link {
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    border-left-color: var(--blog-color, var(--primary-color));
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blog-color, var(--primary-color));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.blog-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 50%, 
        rgba(240, 147, 251, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.blog-link:hover::before {
    width: 100%;
    opacity: 0.08;
}

.blog-link:hover::after {
    opacity: 1;
}

.blog-link:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.5);
}

.blog-link-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blog-color, var(--primary-color));
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-link:hover .blog-link-title {
    color: var(--blog-color, var(--primary-color));
}

.blog-link-description {
    color: var(--text-light);
    font-size: 1em;
    position: relative;
    z-index: 1;
    flex: 1;
    line-height: 1.6;
    font-weight: 400;
}

/* Color variations for different blogs */
.blog-link[data-color] {
    --link-color: var(--blog-color);
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.site-footer p {
    margin: 8px 0;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.site-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.site-footer a:hover {
    color: var(--secondary-color);
}

.site-footer a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 767px) {
    .site-header {
        padding: 40px 0 35px;
    }
    
    .site-title {
        font-size: 2.2em;
    }
    
    .site-subtitle {
        font-size: 1em;
    }
    
    .site-content {
        padding: 40px 0 60px;
    }
    
    .category-title {
        font-size: 1.8em;
        margin-bottom: 28px;
    }
    
    .blog-link {
        padding: 22px 24px;
    }
    
    .blog-link-title {
        font-size: 1.2em;
    }
    
    .blog-link-description {
        font-size: 0.95em;
    }
    
    .blog-category {
        margin-bottom: 50px;
    }
    
    .blog-link:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.blog-category {
    animation: fadeIn 0.6s ease forwards;
}

.blog-link {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.blog-link:nth-child(1) { animation-delay: 0.1s; }
.blog-link:nth-child(2) { animation-delay: 0.15s; }
.blog-link:nth-child(3) { animation-delay: 0.2s; }
.blog-link:nth-child(4) { animation-delay: 0.25s; }
.blog-link:nth-child(5) { animation-delay: 0.3s; }
.blog-link:nth-child(6) { animation-delay: 0.35s; }
.blog-link:nth-child(7) { animation-delay: 0.4s; }
.blog-link:nth-child(8) { animation-delay: 0.45s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-color);
}

