/* Base styles */
@keyframes progress-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.animate-progress-bar {
    animation: progress-bar 2s linear infinite;
}

/* Loading Skeleton Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Toast Animation */
@keyframes slideIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideOut {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

/* Mobile Responsive Utilities */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
}

/* Touch-friendly Buttons */
@media (hover: none) {
    button, 
    [type='button'],
    [type='reset'],
    [type='submit'] {
        min-height: 44px;
        min-width: 44px;
    }

    .touch-target {
        padding: 0.75rem;
    }
}

/* ==============================================
   YOLCUGO BLOG TYPOGRAPHY SYSTEM
   ============================================== */

/* Blog Container */
.yolcugo-blog {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #374151;
}

/* Blog Headings */
.yolcugo-blog h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.yolcugo-blog h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #dbeafe;
    letter-spacing: -0.02em;
}

.yolcugo-blog h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.yolcugo-blog h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.yolcugo-blog h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.yolcugo-blog h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Blog Paragraphs */
.yolcugo-blog p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.5rem;
}

.yolcugo-blog .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Blog Lists */
.yolcugo-blog ul,
.yolcugo-blog ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.yolcugo-blog ul li,
.yolcugo-blog ol li {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.yolcugo-blog ul li {
    list-style-type: none;
    position: relative;
}

.yolcugo-blog ul li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: -1rem;
    font-size: 1.2em;
}

.yolcugo-blog ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

/* Blog Links */
.yolcugo-blog a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.yolcugo-blog a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Blog Blockquotes */
.yolcugo-blog blockquote {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    position: relative;
}

.yolcugo-blog blockquote p {
    font-size: 1.125rem;
    color: #1e40af;
    margin-bottom: 0;
}

/* Blog Code */
.yolcugo-blog code {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.yolcugo-blog pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.yolcugo-blog pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Blog Tables */
.yolcugo-blog table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.yolcugo-blog th {
    background-color: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.yolcugo-blog td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.yolcugo-blog tbody tr:hover {
    background-color: #f9fafb;
}

/* Blog Images */
.yolcugo-blog img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Blog Dividers */
.yolcugo-blog hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    margin: 3rem 0;
}

/* Strong and Emphasis */
.yolcugo-blog strong {
    color: #111827;
    font-weight: 600;
}

.yolcugo-blog em {
    font-style: italic;
    color: #4b5563;
}

/* Blog Alert Boxes */
.yolcugo-alert {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border-left: 4px solid;
    position: relative;
}

.yolcugo-alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.yolcugo-alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
    color: #15803d;
}

.yolcugo-alert-warning {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.yolcugo-alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-left-color: #ef4444;
    color: #dc2626;
}

/* Blog Card Components */
.yolcugo-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    margin: 2rem 0;
}

.yolcugo-card-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.yolcugo-card-header svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: #3b82f6;
}

/* Responsive Blog Typography */
@media (max-width: 768px) {
    .yolcugo-blog h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .yolcugo-blog h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .yolcugo-blog h3 {
        font-size: 1.375rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .yolcugo-blog p,
    .yolcugo-blog li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .yolcugo-blog .lead {
        font-size: 1.125rem;
    }
    
    .yolcugo-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .yolcugo-blog blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .yolcugo-blog h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .yolcugo-blog h2 {
        font-size: 1.5rem;
    }
    
    .yolcugo-blog h3 {
        font-size: 1.25rem;
    }
    
    .yolcugo-blog ul,
    .yolcugo-blog ol {
        padding-left: 1.25rem;
    }
    
    .yolcugo-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
}

/* ==============================================
   Header refined interactions (nav + buttons)
   ============================================== */

.nav-link-refined {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #404040; /* neutral-700 */
    transition: color 160ms ease, background-color 160ms ease, box-shadow 200ms ease;
}

.nav-link-refined:hover {
    color: #2563eb; /* secondary-600 */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(120%) blur(6px);
}

.nav-link-refined::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(59,130,246,0) 0%, rgba(59,130,246,0.9) 50%, rgba(59,130,246,0) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
    border-radius: 9999px;
}

.nav-link-refined:hover::after {
    transform: scaleX(1);
}

.btn-ghost-refined {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(120%) blur(6px);
    color: #404040; /* neutral-700 */
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 160ms ease, box-shadow 220ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-ghost-refined:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.85);
    color: #2563eb; /* secondary-600 */
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 10px 28px rgba(59,130,246,0.12);
}

.btn-ghost-refined:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59,130,246,0.12);
}

.btn-ghost-refined:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15), 0 10px 28px rgba(59,130,246,0.12);
}

.btn-ghost-refined::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120px 60px at var(--mx, 25%) 0%, rgba(59,130,246,0.15), rgba(59,130,246,0));
    opacity: 0;
    transition: opacity 200ms ease;
}

.btn-ghost-refined:hover::after {
    opacity: 1;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .nav-link-refined,
    .btn-ghost-refined {
        transition: none;
    }
    .nav-link-refined::after,
    .btn-ghost-refined::after {
        transition: none;
    }
}