
/* Ollama Library Inspired Design */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --info-hover: #2563eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Header Styles */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo-section-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 0 0 25%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    background-color: #000000;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 64px;
}

.logo-section:hover {
    background-color: #1a1a1a;
    transform: scale(1.02);
}

.logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.site-motto {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(13, 148, 136, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 80px 24px 64px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-ggufy-icon {
    width: 960px;
    height: 960px;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
    max-width: 100%;
    height: auto;
}

.hero-ggufy-icon:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* Page Header Section */
.page-header-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 60px 24px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* OG Content Section */
.og-content {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 1200px;
    margin: 0 auto;
}

.og-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.og-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.og-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.og-content ul {
    text-align: left;
    margin-bottom: 24px;
    padding-left: 24px;
}

.og-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

.og-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.model-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
    text-align: left;
}

.highlight-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.highlight-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.usage-notes {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    text-align: left;
    border: 1px solid var(--border-light);
}

.usage-notes h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.usage-notes p {
    font-size: 16px;
    margin-bottom: 16px;
}

.community-note {
    background: rgba(13, 148, 136, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.community-note p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.community-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Models Section */
.models{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;padding:16px}
.model-card{border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:#fff}
.model-card .meta{display:flex;gap:12px;color:#555;font-size:14px}
.downloads{list-style:none;margin:8px 0 0;padding:0}
.downloads li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Tabs */
.models-tabs{padding:16px}
.tablist{display:flex;gap:8px;border-bottom:2px solid #e5e7eb;margin-bottom:16px}
.tab{background:none;border:none;padding:12px 16px;cursor:pointer;font-size:16px;color:#666;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color 0.2s}
.tab:hover{color:#111}
.tab.active{color:#111;border-bottom-color:#111;font-weight:500}
.subtablist{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:16px}
.subtab{background:none;border:1px solid #e5e7eb;border-radius:6px;padding:8px 12px;cursor:pointer;font-size:14px;color:#666;transition:all 0.2s}
.subtab:hover{background:#f9fafb;color:#111}
.subtab.active{background:#111;color:#fff;border-color:#111}
.tabpanel{display:block}
.tabpanel.hidden{display:none}
.subpanel{display:none}
.subpanel.active{display:block}
.source-links{margin-bottom:12px}
.source-links a{color:#2563eb;text-decoration:none}
.source-links a:hover{text-decoration:underline}
.source-content{min-height:400px;border:1px solid #e5e7eb;border-radius:8px;padding:16px;background:#fff}
.source-content iframe{width:100%;height:600px;border:none;border-radius:4px}
.source-content .loading{text-align:center;padding:40px;color:#666}
.source-content .error{text-align:center;padding:40px;color:#dc2626}
.og-content{padding:40px 16px;text-align:center;color:#666}

/* Footer */
.site-footer{padding:16px;text-align:center;color:#555;border-top:1px solid #e5e7eb;background:#fff}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: auto;
        min-height: 80px;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .logo-section-link {
        flex: 0 0 auto;
    }
    
    .logo-section {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-motto {
        font-size: 12px;
    }
    
    .hero-ggufy-icon {
        max-width: 90vw;
        max-height: 60vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .site-motto {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e5e7eb;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;
        --bg-primary: #0b0c0f;
        --bg-secondary: #0f1115;
        --bg-tertiary: #1a1d24;
        --border-color: #20252b;
        --border-light: #2a2f36;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .site-header {
        background-color: rgba(15, 17, 21, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .model-card, .site-footer {
        background-color: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .nav-link {
        color: var(--text-secondary);
    }
    
    .nav-link:hover {
        color: var(--text-primary);
        background-color: var(--bg-tertiary);
    }
    
    .hero-section {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    }
    
    .hero-title {
        color: var(--text-primary);
    }
    
    .hero-subtitle {
        color: var(--text-secondary);
    }
    
    .tablist {
        border-bottom-color: var(--border-color);
    }
    
    .tab {
        color: var(--text-muted);
    }
    
    .tab:hover {
        color: var(--text-primary);
    }
    
    .tab.active {
        color: var(--text-primary);
        border-bottom-color: var(--text-primary);
    }
    
    .subtab {
        border-color: var(--border-color);
        color: var(--text-muted);
    }
    
    .subtab:hover {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    .subtab.active {
        background-color: var(--text-primary);
        color: var(--bg-primary);
        border-color: var(--text-primary);
    }
    
    .source-content {
        border-color: var(--border-color);
        background-color: var(--bg-secondary);
    }
    
    .og-content {
        color: var(--text-muted);
    }
    
    .site-footer {
        background-color: var(--bg-secondary);
        border-top-color: var(--border-color);
        color: var(--text-secondary);
    }
}
