.workflow-language-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.workflow-language-toggle span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.workflow-language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --background: #ffffff;
    --foreground: #1e1e1e;
    --card: #ffffff;
    --card-foreground: #1e1e1e;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #1e1e1e;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #3b82f6;
    --accent-foreground: #ffffff;
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #3b82f6;
    --radius: 0.75rem;
}

.dark {
    --background: #141414;
    --foreground: #fafafa;
    --card: #1f1f1f;
    --card-foreground: #fafafa;
    --primary: #6366f1;
    --primary-foreground: #fafafa;
    --secondary: #2d2d2d;
    --secondary-foreground: #fafafa;
    --muted: #2d2d2d;
    --muted-foreground: #a6a6a6;
    --accent: #6366f1;
    --accent-foreground: #fafafa;
    --border: #383838;
    --input: #383838;
    --ring: #6366f1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

html {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.desktop-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 0.2rem;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    color: var(--foreground);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav .admin-nav-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav .admin-nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.desktop-nav .admin-nav-link::after {
    display: none;
}

.desktop-nav .admin-nav-link svg {
    width: 14px;
    height: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.lang-switcher {
    position: relative;
}

.lang-switcher .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
    min-width: 160px;
    z-index: 1200;
}

.lang-switcher .lang-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--foreground);
}

.lang-switcher .lang-menu button:hover {
    background: var(--muted);
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-right: 0.5rem;
}

.mobile-menu-toggle svg {
    color: var(--foreground);
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
nav#main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

nav#main-nav.mobile-open {
    left: 0;
}

.nav-panel {
    padding: 0.25rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Geriye dönük uyum için */
.nav-panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.nav-panel-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-panel-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-panel-header button:hover {
    background: var(--muted);
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-section p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.nav-section a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.nav-section a:hover {
    background: var(--muted);
    color: var(--primary);
}

body.nav-open {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-only {
        display: inline-flex !important;
    }
}

@media (max-width: 1023px) {
    .desktop-nav {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: inline-flex;
        margin-right: 0; /* ikon ile logo arasındaki boşluğu kaldır */
    }

    .header-content {
        justify-content: flex-start; /* logo ve iconu yanaştır */
        gap: 0.35rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 2rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Tools page layout */
.tools-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Detail pages (prompt, tool, workflow) */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .detail-layout aside {
        margin-top: 2rem;
    }
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-actions .detail-action-btn {
    flex: 1 1 200px;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
}

.detail-actions .detail-action-btn.report-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.detail-actions .detail-action-btn.report-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 768px) {
    .detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .detail-actions .detail-action-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .detail-actions .detail-action-btn:first-child {
        grid-column: 1 / -1;
    }
}

.prompt-cover {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--muted);
}

.prompt-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prompt-cover.placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--muted-foreground);
    font-weight: 500;
}

.sidebar-share {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-share .btn,
.sidebar-share button {
    width: 100%;
    justify-content: center;
}

.tools-filter-strip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.tools-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tools-filter-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.tools-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-filter-actions .btn {
    min-width: 110px;
    justify-content: center;
}

.tools-filter-actions .btn.btn-icon {
    min-width: auto;
    padding: 0.375rem 0.5rem;
}

.mobile-category-filter {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-category-filter label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
    font-weight: 600;
}

.mobile-category-filter select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 0.95rem;
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    display: flex;
    padding: 0;
    overflow: hidden;
    min-height: 200px;
    width: 100%;
}

.tool-card-logo {
    width: 140px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.05em;
}

.tool-card-logo.image-logo {
    padding: 0;
    background: #0f172a;
}

.tool-card-logo .badge,
.badge-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.tool-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Workflow logo specific */
.workflow-logo {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Workflow card logo for grid view (index.php, profile.php) */
.workflow-card-logo {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.workflow-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-card-logo > span:not(.badge) {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.tool-card {
    display: flex;
    padding: 0;
    overflow: hidden;
    min-height: 200px;
    width: 100%;
}

.workflow-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.workflow-card .card-footer {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-card-body,
.workflow-card-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--foreground);
    transition: color 0.2s;
    display: inline-block;
}

.tool-card-title:hover {
    color: var(--primary);
}

.tool-card-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.tool-card-rating span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-card-rating strong {
    color: var(--foreground);
    font-weight: 600;
}

.tool-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tool-card-cta,
.workflow-card-cta {
    width: 280px;
    padding: 1.5rem;
    background: var(--muted);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.tool-card-cta p,
.workflow-card-cta p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-card-btn,
.workflow-card-btn {
    width: 100%;
}

@media (max-width: 1024px) {
    .tool-card,
    .workflow-card {
        flex-direction: column;
    }
    .tool-card-logo,
    .workflow-card-logo {
        width: 100%;
        min-height: 140px;
    }
    .tool-card-cta,
    .workflow-card-cta {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 1024px) {
    .tools-layout {
        grid-template-columns: 220px 1fr;
    }

    .tools-filter-strip {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-layout {
        display: flex;
        flex-direction: column;
    }

    .tools-layout aside {
        display: none;
    }
    
    .mobile-category-filter {
        display: flex;
    }
    
    /* Filters: single horizontal row with scroll on mobile */
    .tools-filter-strip {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding: 0.75rem 0.5rem 1rem 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tools-filter-group {
        min-width: 135px;
        flex: 0 0 auto;
    }
    
    /* Search form responsive */
    .search-form-inner {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    .search-form-inner.has-select {
        grid-template-columns: 1fr !important;
    }
    
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-select {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--background) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.hero-bg-blob-1 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(59, 130, 246, 0.2);
}

.hero-bg-blob-2 {
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(99, 102, 241, 0.2);
    animation-delay: 1s;
}

.hero-bg-blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24rem;
    height: 24rem;
    background: rgba(59, 130, 246, 0.1);
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--primary);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--primary);
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, rgba(var(--foreground), 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Tool cards */
.tool-owner-pill-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--muted);
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.tool-owner-pill-inline:hover {
    background: #e5edff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Hero */
.search-hero {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--background) 100%);
    border-bottom: 1px solid var(--border);
}

.search-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.search-hero-info {
    max-width: 720px;
}

.search-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.search-hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}

.search-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--foreground);
}

.search-hero-description {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.search-hero-meta {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.search-language-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.search-language-toggle span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.search-language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.language-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.language-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-language-hint {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-top: 0.35rem;
    text-align: center;
}

.search-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.search-form-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.search-form-inner:hover,
.search-form-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.search-input-wrapper,
.search-select-wrapper {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
}

.search-select-wrapper {
    flex: 0 0 220px;
}

.search-select-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
}

.search-form-inner.has-select .search-select-wrapper {
    flex: 0 0 230px;
}

.breadcrumbs {
    background: linear-gradient(180deg, rgba(59,130,246,0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs .container {
    padding: 1rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumbs li::after {
    content: "/";
    color: var(--border);
    font-weight: 400;
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    color: var(--foreground);
    outline: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-select {
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--foreground);
    cursor: pointer;
    outline: none;
    width: 100%;
    padding: 0.75rem 0.5rem;
}

.search-submit-btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 48px;
}

.search-submit-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.search-form-hint {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
}

.active-filters-bar {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.active-filters-bar strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--background);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--foreground);
}

.active-filter-chip svg {
    width: 14px;
    height: 14px;
}

.search-wrapper {
    position: relative;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    background: transparent;
    color: var(--foreground);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Tags */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.tag:hover {
    transform: scale(1.05);
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Cards */
.card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    padding-bottom: 0.75rem;
}

.card-content {
    padding: 0 1.5rem;
    padding-bottom: 0.75rem;
}

.card-footer {
    padding: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prompt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prompt-card .card-header {
    padding: 1.25rem 1.25rem 0.75rem;
}

.prompt-card .card-content {
    padding: 0 1.25rem 1.25rem;
    flex: 1 1 auto;
}

.prompt-card .card-footer {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-top: auto;
}

.prompt-card .card-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.prompt-card .card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.card-footer .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.card-stats {
    min-height: 48px;
}
/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    gap: 0.25rem;
}

.badge-premium {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(var(--muted), 0.3) 0%, rgba(var(--muted), 0.5) 100%);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* Section */
.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    color: var(--muted-foreground);
}

/* Tabs */
.tabs {
    width: 100%;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.tabs-trigger {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-weight: 500;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    transition: all 0.2s;
}

.tabs-trigger:hover {
    color: var(--foreground);
}

.tabs-trigger.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabs-content {
    display: none;
}

.tabs-content.active {
    display: block;
}

/* Category Cards */
.category-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--foreground);
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(3deg);
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.category-card:hover .category-title {
    color: var(--primary);
}

.category-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    background-color: var(--muted);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Language Selector */
.language-tabs {
    margin-bottom: 2rem;
}

.language-tabs-list {
    display: inline-flex;
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.language-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-weight: 500;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    transition: all 0.2s;
}

.language-tab:hover {
    color: var(--foreground);
}

.language-tab.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--input);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md-flex { display: flex; }
}

/* Mobile responsive for language selector */
@media (max-width: 768px) {
    header .flex.items-center.gap-3 {
        gap: 0.5rem !important;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 640px) {
    nav a {
        font-size: 0.875rem !important;
    }
}

/* Q&A Pages */
.qa-main {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--background) 35%);
}

.qa-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.qa-hero-text {
    flex: 1 1 320px;
}

.qa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
}

.qa-hero-text h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
}

.qa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qa-hero-stats {
    flex: 0 0 260px;
    display: grid;
    gap: 1rem;
}

.qa-stat-card {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--muted);
}

.qa-stat-card p {
    margin-bottom: 0.3rem;
    color: var(--muted-foreground);
}

.qa-stat-card strong {
    font-size: 1.8rem;
}

.qa-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
}

.qa-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-filter-card,
.qa-sidebar-card,
.qa-question-card,
.qa-answer-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.qa-filter-card {
    padding: 1.5rem;
}

.qa-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.qa-filter-grid label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--muted-foreground);
}

.qa-filter-grid input,
.qa-filter-grid select,
.qa-form input,
.qa-form textarea,
.qa-form select,
.qa-answer-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
}

.qa-filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.qa-question-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.qa-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--muted);
    font-size: 0.85rem;
}

.qa-status {
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qa-status.open {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.qa-status.resolved {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.qa-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
}

.qa-card-excerpt {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qa-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--muted);
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.qa-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qa-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.qa-card-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qa-card-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.qa-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.qa-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.qa-pagination a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
}

.qa-pagination a.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.qa-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-sidebar-card {
    padding: 1.5rem;
}

.qa-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-form label {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.qa-form small {
    color: var(--muted-foreground);
    font-weight: 400;
}

.qa-login-prompt {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--muted);
    text-align: center;
}

.qa-login-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.qa-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qa-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qa-recent-list li a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
}

.qa-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.qa-empty {
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    text-align: center;
    color: var(--muted-foreground);
}

.qa-detail-main {
    padding: 3rem 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qa-detail-header {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    background: var(--card);
}

.qa-back-link {
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.qa-detail-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.qa-language-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--muted);
    font-size: 0.85rem;
}

.qa-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.qa-detail-stats div {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.qa-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qa-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-question-card,
.qa-answer-card {
    padding: 1.5rem;
}

.qa-question-content,
.qa-answer-content {
    line-height: 1.7;
}

.qa-answers-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-answer-card.accepted {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.qa-accepted-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qa-answer-actions {
    display: flex;
    gap: 0.75rem;
}

.qa-answer-form {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--card);
}

.qa-related {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--card);
}

.qa-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.qa-related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: var(--foreground);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 1023px) {
    .qa-layout {
        grid-template-columns: 1fr;
    }

    .qa-hero {
        padding: 1.5rem;
    }
}