/* Base styles */
body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    position: relative;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 4rem;
    position: relative;
    min-height: 100vh;
}

/* Remove footer styles */
.footer {
    display: none;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab content styles */
.tab-content {
    display: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tab-content:not(.hidden) {
    display: block;
}

/* Tab button styles */
.tab-button {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.markdown-content {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Markdown content specific styles */
.markdown-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.markdown-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.markdown-content p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.markdown-content ul, .markdown-content ol {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.markdown-content li {
    margin-bottom: 0.4rem;
}

.header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    padding: 2.5rem 2rem 1.5rem 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

.header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-size: 1.75rem;
    margin-right: 0.75rem;
}

.header:hover i {
    transform: rotate(15deg);
}

.header h1 {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
    width: auto;
    padding-left: 0;
}

.header:hover h1 {
    transform: scale(1.02);
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Add font-family to all text elements with consistent rendering */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, select, textarea, .font-mono {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Keep monospace font for code elements */
code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Standardized font sizes */
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
p, .text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

@media (max-width: 640px) {
    .header {
        padding: 2rem 1rem 1rem 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .header h1 {
        font-size: 1.75rem;
    }
    .header i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    main {
        padding: 1rem;
        padding-bottom: 3rem;
    }
    .footer {
        height: 60px; /* Smaller height on mobile */
    }
    .footer .max-w-7xl {
        padding: 1rem;
    }
    .glass-effect, .tab-content {
        padding: 0 0.5rem;
    }
    .tab-button {
        font-size: 0.95rem;
    }
    .back-button {
        display: none !important;
    }
    .container, .glass-effect, .title-container {
        margin-top: 1rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .header {
        padding: 1.25rem 1.5rem;
    }
    .header h1 {
        font-size: 1.75rem;
    }
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #4B5563;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-4px);
    border-color: rgba(37, 99, 235, 0.2);
}

.back-button .arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.back-button:hover .arrow {
    transform: translateX(-4px);
}

.back-button .arrow::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
    left: 4px;
    top: 4px;
    transition: all 0.3s ease;
}

.back-button:hover .arrow::before {
    border-color: #2563EB;
}

/* Page transition animations */
.page-transition {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-transition-out {
    opacity: 0;
    transform: translateY(20px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0f2fe;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image card hover animation */
.image-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-4px);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.image-card:hover .image-card-title {
    color: #2563EB;
}

.image-card:hover .image-card-description {
    color: #4B5563;
}

.image-card:hover .image-card-icon {
    color: #2563EB;
    transform: scale(1.1);
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #4B5563;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.25rem;
}

.category-link:hover {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.2);
}

.category-link.active {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    font-weight: 500;
}

.category-link i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.category-link:hover i {
    transform: scale(1.1);
} 