/* ============================================
   Adsense Tailwind Theme - Custom CSS
   ============================================ */

/* Prose Styles for Content */
.prose {
    color: #374151;
    line-height: 1.75;
}

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

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.125em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #4b5563;
}

.prose code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
}

.prose pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose th,
.prose td {
    padding: 0.75em;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose th {
    background: #f9fafb;
    font-weight: 600;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ad Container Styles */
.ad-container {
    min-height: 90px;
}

.ad-container ins.adsbygoogle {
    display: block !important;
}

/* Sticky Ad */
.sticky-ad {
    position: sticky;
    top: 6rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: #f3f4f6;
    color: #374151;
}

.pagination a:hover {
    background: #3b82f6;
    color: white;
}

.pagination .current {
    background: #3b82f6;
    color: white;
}

/* Menu Styles */
.menu {
    list-style: none;
}

.menu a {
    color: inherit;
    transition: color 0.2s;
}

.menu a:hover {
    color: #3b82f6;
}

/* Category List Styles */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s;
}

.category-list a:hover {
    color: #3b82f6;
}

.category-list .count {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Tag Cloud Styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: #3b82f6;
    color: white;
}

/* Archive List Styles */
.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    display: block;
    padding: 0.5rem 0;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s;
}

.archive-list a:hover {
    color: #3b82f6;
}

/* Search Form Styles */
.search-form {
    display: flex;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="text"]:focus {
    border-color: #3b82f6;
    ring: 2px;
    ring-color: #bfdbfe;
}

.search-form button {
    padding: 0.75rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background: #2563eb;
}

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

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ad-container,
    .sticky-ad,
    #mobile-menu-btn,
    .mobile-menu {
        display: none !important;
    }
    
    .prose a {
        text-decoration: underline;
    }
    
    .prose a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.875em;
        color: #6b7280;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
