/* Nobloatai - Main CSS Styles */
/* Base styles, typography, navigation, and footer */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fdfdfd;
    color: #1a1a1a;
    line-height: 1.6;
    font-weight: 400;
}

/* Navigation Styles */
.top-nav {
    position: sticky;
    top: 0;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    margin-bottom: 0;
    z-index: 100;
}

.nav-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

.nav-link.active {
    font-weight: 600;
    color: #1a1a1a;
}

/* Container and Typography */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Filter Tabs for Tools Page */
.filter-tabs {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: hidden;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.filter-btn:hover {
    color: #1a1a1a;
}

.filter-btn.active {
    color: #1a1a1a;
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

.category-buttons {
    display: flex;
    gap: 24px;
}

/* Search Components */
.search-box {
    margin-left: auto;
}

.mobile-search {
    display: none;
    padding: 0 24px;
    margin-bottom: 24px;
}

.search-input {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: border-color 0.15s ease;
    border-bottom: 2px solid transparent;
}

.mobile-search .search-input {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-bottom-color: #e9ecef;
}

/* Tools and Content Styles */
.count {
    margin-bottom: 32px;
    color: #888;
    font-size: 14px;
    font-weight: 400;
}

.tools {
    background: transparent;
}

.tool {
    border-bottom: 1px solid #f0f0f0;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.tool:first-child {
    padding-top: 0;
}

.tool:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tool-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tool-icon img,
.tool-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.tool-icon .fallback-icon {
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

.tool-icon.writing .fallback-icon { color: #f5576c; }
.tool-icon.coding .fallback-icon { color: #00f2fe; }
.tool-icon.image .fallback-icon { color: #38f9d7; }
.tool-icon.productivity .fallback-icon { color: #fee140; }
.tool-icon.analysis .fallback-icon { color: #fed6e3; }

.tool-info {
    flex: 1;
    padding-right: 24px;
}

.tool-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.tool-description {
    color: #666;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 400;
}

.tool-verdict {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
    opacity: 0.8;
}

.tool-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-tag {
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
}

.tool-details {
    text-align: right;
    flex-shrink: 0;
}

.tool-url {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
    font-weight: 400;
}

.tool-url:hover {
    text-decoration: underline;
}

.tool-pricing {
    color: #888;
    font-size: 13px;
    margin-bottom: 4px;
}

.tool-category {
    background: transparent;
    padding: 0;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Blog Styles */
.posts {
    background: transparent;
}

.post {
    border-bottom: 1px solid #f0f0f0;
    padding: 24px 0;
}

.post:first-child {
    padding-top: 0;
}

.post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 400;
}

.post-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #666;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual Post Styles */
.post-page .container {
    max-width: 680px;
}

.post-page .post-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-page .post-date {
    font-size: 14px;
    margin-bottom: 16px;
}

.back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-page .post-tags {
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.post-page .post-tag {
    padding: 4px 10px;
    font-size: 13px;
}

/* Common Components */
.loading {
    text-align: center;
    padding: 60px 0;
    color: #666;
    font-size: 15px;
}

.add-tool-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #1a1a1a;
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}

.add-tool-btn:hover {
    transform: scale(1.05);
}

/* Footer Styles */
.footer {
    border-top: 1px solid #f0f0f0;
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}

.footer-link:hover {
    color: #1a1a1a;
}

.footer-text {
    color: #888;
    font-size: 12px;
}