/*
Theme Name: AI Nav Theme
Theme URI: https://example.com
Author: AI Assistant
Author URI: https://example.com
Description: A clean navigation theme based on user design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-nav
*/

:root {
    --bg-color: #ebedf0;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-secondary: #888888;
    --primary-color: #3b82f6;
    --sidebar-width: 260px;
    --header-height: 70px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    padding: 20px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 1px 0 10px rgba(0,0,0,0.02);
    z-index: 100;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #000;
    text-decoration: none;
    padding-left: 10px;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 15px;
}

.nav-menu a:hover, .nav-menu li.current-cat a {
    background-color: #f5f5f5;
    color: #000;
    font-weight: 500;
}

.nav-menu .count {
    font-size: 12px;
    color: #aaa;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    margin-top: 10px;
}

.search-box {
    position: relative;
    width: 300px;
    margin-right: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    color: #555;
}

/* Content Grid */
.content-area {
    padding: 20px 40px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.site-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid transparent;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #f0f0f0;
}

.site-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #f9f9f9;
}

.site-info {
    flex: 1;
    overflow: hidden;
}

.site-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .top-header, .content-area {
        padding: 20px;
    }
}
