/* Ochi Blog - Basic CSS */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Layout */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }

/* Spacing */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Text */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Colors */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-white { color: white; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }

/* Borders */
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Max width */
.max-w-none { max-width: none; }

/* Space */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-600:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Hover states */
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:bg-opacity-90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:text-blue-800:hover { color: #1e40af; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

/* Responsive */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:mr-6 { margin-right: 1.5rem; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:w-2\/3 { width: 66.666667%; }
    .lg\:w-1\/3 { width: 33.333333%; }
    .lg\:pr-8 { padding-right: 2rem; }
    .lg\:mt-0 { margin-top: 0; }
}

/* Form styles */
.form-control, input[type="text"], input[type="email"], input[type="url"], textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
}

.form-control:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff006b;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #e6005f;
}

/* Prose/Content */
.prose {
    max-width: 65ch;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.375rem;
}

/* Lists */
.list-none { list-style: none; }
.pl-0 { padding-left: 0; }

/* Additional utility for inline colors */
[style*="color: #ff006b"] {
    color: #ff006b !important;
}

/* Ensure proper layout behavior */
.container.mx-auto.px-2.py-8.flex.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
}

/* Force correct responsive behavior */
@media (min-width: 1024px) {
    div.w-full.lg\:w-2\/3.lg\:pr-8 {
        width: 66.666667% !important;
        padding-right: 2rem !important;
    }
    
    div.w-full.lg\:w-1\/3.mt-8.lg\:mt-0 {
        width: 33.333333% !important;
        margin-top: 0 !important;
    }
}

/* Custom overrides for blog styling */
.text-\[\#ff006b\] {
    color: #ff006b !important;
}

.bg-\[\#ff006b\] {
    background-color: #ff006b !important;
}

.bg-\[\#1DA1F2\] {
    background-color: #1DA1F2 !important;
}

.bg-\[\#3b5998\] {
    background-color: #3b5998 !important;
}

.bg-\[\#0077b5\] {
    background-color: #0077b5 !important;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff006b, #ff3385);
    z-index: 1000;
    transition: width 0.2s ease;
}

/* Header enhancements */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for all hover states */
.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}