/* Modern Blog Theme - Global Styles */
html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2d3748;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
    line-height: 1.3;
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: #2d3748;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.1rem;
}

/* Modern Card Components */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

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

.hero-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
}

.hero-card h1 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Post Previews */
.post-preview {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.post-preview h3 {
    margin-bottom: 0.75rem;
}

.post-preview h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-preview h3 a:hover {
    color: #667eea;
}

.post-meta {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-content {
    color: #4a5568;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-card h1 {
        font-size: 2.5rem;
    }
    
    .hero-card p {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .card,
    .post-preview {
        padding: 1.5rem;
    }
}

/* Focus styles for accessibility */
a:focus,
.btn:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Code styling */
code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: #2d3748;
}

/* Loading and error states */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #667eea;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #667eea;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Blog Pagination Styles */
.pagination-nav {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(160, 174, 192, 0.3);
}

.pagination-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #718096;
    font-size: 0.95rem;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 2.5rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pagination-btn.current-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    cursor: default;
}

.pagination-btn.current-page:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Responsive Design für Pagination */
@media (max-width: 640px) {
    .pagination-buttons {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 2.25rem;
    }
    
    .pagination-info {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .pagination-nav {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .pagination-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 200px;
    }
}
