/* MyAshes.ai - Ashes of Creation AI Assistant
 * Dark fantasy theme with gold accents
 */

:root {
    --gold: #d4a44a;
    --gold-light: #f0c760;
    --dark: #0d0d0d;
    --dark-lighter: #1a1a1a;
    --dark-card: #151515;
    --text: #e5e5e5;
    --text-muted: #999;
}

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

/* Accessibility: Visible focus states */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 164, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 164, 74, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 span {
    color: var(--gold);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(212, 164, 74, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Autocomplete Suggestions */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions-dropdown.visible {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(212, 164, 74, 0.1);
}

.suggestion-item .title {
    color: var(--text);
    font-weight: 500;
}

.suggestion-item .preview {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.btn-primary {
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.4);
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.3);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 164, 74, 0.1);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Search Mode Selector */
.search-mode-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.mode-btn:hover {
    border-color: rgba(212, 164, 74, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.mode-btn:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.3);
}

.mode-btn.active {
    border-color: var(--gold);
    background: rgba(212, 164, 74, 0.1);
}

.mode-btn .mode-icon {
    font-size: 1.25rem;
}

.mode-btn .mode-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.mode-btn .mode-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.mode-btn.active .mode-name {
    color: var(--gold);
}

/* Legacy Mode Toggle (for backward compatibility) */
.mode-toggle {
    display: none; /* Hidden - replaced by mode selector */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.mode-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mode-label.active {
    color: var(--gold);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 164, 74, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch:hover {
    border-color: var(--gold);
}

.toggle-switch.active {
    background: rgba(212, 164, 74, 0.2);
    border-color: var(--gold);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    left: 30px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(212, 164, 74, 0.5);
}

.hardcore-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hardcore-badge.visible {
    display: inline-flex;
}

.hardcore-badge::before {
    content: '';
}

/* Chat Container */
.chat-container {
    max-width: 700px;
    margin: 2rem auto 0;
    display: none;
}

.chat-container.visible {
    display: block;
}

/* Chat Messages */
.chat-message {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.chat-message.user {
    background: rgba(212, 164, 74, 0.1);
    border-color: rgba(212, 164, 74, 0.3);
}

.chat-message.assistant {
    background: var(--dark-card);
}

.chat-message.error {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.retry-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.6);
}

.retry-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.3);
}

.message-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message-content {
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.message-content p {
    margin-bottom: 0.75rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    border-bottom: 1px solid rgba(212, 164, 74, 0.3);
    padding-bottom: 0.25rem;
}

.message-content h4 {
    color: var(--gold-light);
    font-size: 1rem;
    margin: 0.75rem 0 0.4rem 0;
}

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content ol {
    list-style-type: decimal;
}

.message-content li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.message-content strong {
    color: var(--gold-light);
}

.message-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Message Sources */
.message-sources {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.sources-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sources-label {
    color: var(--text-muted);
}

.confidence-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-badge.high {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.confidence-badge.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
}

.confidence-badge.low {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.source-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    background: rgba(212, 164, 74, 0.1);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.source-link.high {
    border-color: rgba(76, 175, 80, 0.3);
}

.source-link.medium {
    border-color: rgba(255, 193, 7, 0.3);
}

.source-link.low {
    border-color: rgba(244, 67, 54, 0.2);
    opacity: 0.8;
}

.source-link:hover {
    background: rgba(212, 164, 74, 0.2);
    transform: translateY(-1px);
}

a.source-link {
    cursor: pointer;
    text-decoration: none;
}

a.source-link:hover {
    text-decoration: underline;
}

.source-score {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.loading-text.deep {
    color: #ff6b6b;
}

/* Clear Chat Button */
.clear-chat {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.clear-chat:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.clear-chat:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.3);
}

.powered-by {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.7;
}

.powered-by a {
    color: var(--gold);
    text-decoration: none;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--dark-lighter);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 164, 74, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 164, 74, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    text-align: center;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

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

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

.footer-version {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .search-mode-selector {
        flex-direction: column;
        align-items: center;
    }

    .mode-btn {
        width: 100%;
        max-width: 200px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .mode-btn .mode-desc {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .search-container {
        flex-direction: column;
    }

    .search-input-wrapper {
        min-width: 100%;
    }

    .btn-primary {
        width: 100%;
    }

    .chat-message {
        padding: 1rem;
    }
}

/* ============================================
   Feature Navigation
   ============================================ */

.feature-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.nav-tab:hover {
    border-color: rgba(212, 164, 74, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
    border-color: var(--gold);
    background: rgba(212, 164, 74, 0.15);
}

.nav-tab.active .nav-label {
    color: var(--gold);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Feature Panels */
.feature-panels {
    width: 100%;
}

.feature-panel {
    display: none;
}

.feature-panel.active {
    display: block;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ============================================
   Build Planner Styles
   ============================================ */

.planner-header {
    text-align: center;
    margin-bottom: 2rem;
}

.planner-header h2 {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.planner-subtitle {
    color: var(--text-muted);
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.planner-section {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.planner-section h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.section-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Archetype Grid */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.archetype-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.archetype-btn:hover {
    border-color: rgba(212, 164, 74, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.archetype-btn.selected {
    border-color: var(--gold);
    background: rgba(212, 164, 74, 0.15);
}

.archetype-btn .archetype-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.archetype-btn.selected .archetype-name {
    color: var(--gold);
}

.archetype-btn .archetype-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Race Grid */
.race-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.race-group-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.race-group-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.race-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-size: 0.85rem;
}

.race-btn:hover {
    border-color: rgba(212, 164, 74, 0.5);
}

.race-btn.selected {
    border-color: var(--gold);
    background: rgba(212, 164, 74, 0.15);
    color: var(--gold);
}

/* Build Result Card */
.planner-result {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.build-result-card {
    text-align: center;
}

.build-result-card .class-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.class-formula {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.archetype-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.archetype-tag.primary {
    background: rgba(212, 164, 74, 0.2);
    color: var(--gold);
}

.archetype-tag.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.formula-plus {
    color: var(--text-muted);
    font-weight: bold;
}

.race-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.class-description {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.class-playstyle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.archetype-details {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-row {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    color: var(--gold);
}

.build-name-input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.build-name-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Planner Actions */
.planner-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Saved Builds */
.saved-builds-section {
    margin-top: 2rem;
    display: none;
}

.saved-builds-section h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.saved-builds-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.saved-build-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.saved-build-name {
    font-weight: 600;
    color: var(--text);
}

.saved-build-class {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.saved-build-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Shared Build Notice */
.shared-build-notice {
    text-align: center;
    padding: 2rem;
}

.shared-build-notice .notice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shared-build-notice .notice-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: monospace;
}

.shared-build-notice .notice-message {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Share Result Section */
.share-result {
    margin-bottom: 1.5rem;
}

.share-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
}

.share-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #81c784;
    margin-bottom: 1rem;
}

.share-icon {
    font-size: 1.25rem;
}

.share-url-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.share-url-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: monospace;
}

.copy-url-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.share-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.share-stats code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.share-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    flex-wrap: wrap;
}

/* Shared Build Info */
.shared-build-info {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
}

.shared-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.shared-icon {
    font-size: 1.1rem;
}

.shared-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.shared-stats .stat {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Vote Section */
.vote-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.vote-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vote-stars {
    display: flex;
    gap: 0.25rem;
}

.star-btn {
    padding: 0.4rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.star-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    border-color: rgba(212, 164, 74, 0.5);
    background: rgba(212, 164, 74, 0.1);
}

.star-btn:active {
    transform: scale(1.1);
}

/* Owner Actions */
.owner-actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Chat Feedback Buttons
   ============================================ */

.message-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feedback-btn {
    padding: 0.3rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.feedback-btn:hover {
    opacity: 1;
    border-color: rgba(212, 164, 74, 0.5);
    background: rgba(212, 164, 74, 0.1);
}

.feedback-btn.selected {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(212, 164, 74, 0.2);
}

.feedback-icon {
    font-size: 0.9rem;
}

.feedback-thanks {
    font-size: 0.75rem;
    color: var(--gold);
    font-style: italic;
}

/* ============================================
   Crafting Calculator Styles
   ============================================ */

.crafting-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.crafting-header h2 {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.crafting-subtitle {
    color: var(--text-muted);
}

/* Tier Info Bar */
.tier-info-bar {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tier-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tier-indicator.warning {
    color: #ff6b6b;
}

.tier-warning {
    color: #ff6b6b;
    font-weight: 600;
}

.tier-status {
    color: var(--text);
}

/* Crafting Branches */
.crafting-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.crafting-branch {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.branch-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-header h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.branch-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profession-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profession-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.profession-card:hover {
    border-color: rgba(212, 164, 74, 0.3);
}

.profession-info {
    flex: 1;
    min-width: 0;
}

.profession-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.profession-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.profession-requires {
    font-size: 0.7rem;
    color: var(--gold);
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Tier Selector */
.profession-tier-selector {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.tier-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-btn:hover {
    border-color: rgba(212, 164, 74, 0.5);
}

.tier-btn.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

/* Crafting Chains */
.crafting-chains-section {
    margin-bottom: 2rem;
}

.crafting-chains-section h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.chain-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.chain-name {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.chain-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.chain-step {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text);
}

.chain-step.multi {
    background: rgba(212, 164, 74, 0.1);
}

.chain-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.chain-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Crafting Result */
.crafting-result {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-summary h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.plan-tier {
    margin-bottom: 1rem;
}

.plan-tier:last-child {
    margin-bottom: 0;
}

.plan-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-tier-header .tier-name {
    font-weight: 600;
    color: var(--text);
}

.plan-tier-header .tier-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-tier-profs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.prof-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.prof-tag.gathering {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.prof-tag.processing {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.prof-tag.crafting {
    background: rgba(212, 164, 74, 0.2);
    color: var(--gold);
}

/* Crafting Actions */
.crafting-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tips Section */
.crafting-tips-section {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.crafting-tips-section h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.tips-list {
    margin: 0;
    padding-left: 1.25rem;
}

.tips-list li {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   AI Recommendation Section (Build Planner)
   ============================================ */

.ai-recommendation-section {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-recommendation-section h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-recommendation-section h3::before {
    content: '🧠';
}

.recommendation-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recommendation-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.recommendation-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.recommendation-input::placeholder {
    color: var(--text-muted);
}

.recommendation-results {
    min-height: 0;
}

/* AI Loading State */
.ai-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(212, 164, 74, 0.1);
    border-radius: 8px;
    color: var(--gold);
    font-size: 0.9rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 164, 74, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(212, 164, 74, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI Error State */
.ai-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.error-icon {
    font-size: 1.25rem;
}

.btn-retry {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-retry:hover {
    background: rgba(255, 100, 100, 0.3);
}

/* AI Recommendations Display */
.ai-recommendations {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.recommendations-content {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.recommendations-content strong {
    color: var(--gold);
}

/* Quick Select Buttons */
.quick-select-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.quick-select-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.quick-select-btn {
    padding: 0.4rem 0.75rem;
    background: rgba(212, 164, 74, 0.1);
    border: 1px solid rgba(212, 164, 74, 0.3);
    border-radius: 6px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-select-btn:hover {
    background: rgba(212, 164, 74, 0.2);
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Recommendation Sources */
.recommendation-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.recommendation-sources .sources-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* AI Enrichment Section */
.ai-enrichment-section {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.ai-icon {
    font-size: 1.1rem;
}

.ai-enrichment-content {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-loading-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.enrichment-text {
    color: var(--text);
}

.enrichment-text strong {
    color: var(--gold-light);
}

/* Enrichment Sources */
.enrichment-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.source-chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(212, 164, 74, 0.1);
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.source-chip:hover {
    background: rgba(212, 164, 74, 0.2);
    text-decoration: none;
}

/* ============================================
   AI Crafting Section
   ============================================ */

.crafting-ai-section {
    background: var(--dark-card);
    border: 1px solid rgba(212, 164, 74, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ai-search-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.crafting-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.crafting-search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Example Query Buttons */
.crafting-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.examples-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.example-btn {
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    border-color: rgba(212, 164, 74, 0.5);
    color: var(--gold);
    background: rgba(212, 164, 74, 0.1);
}

/* Crafting AI Results */
.crafting-ai-results {
    min-height: 0;
}

.crafting-ai-response {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.response-content {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.response-content strong {
    color: var(--gold);
}

.response-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.response-sources .sources-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Notification Toast
   ============================================ */

#notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: var(--gold);
    color: var(--dark);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   Community Builds Section
   ============================================ */

.community-builds-section {
    margin-top: 2rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.community-builds-header {
    margin-bottom: 1rem;
}

.community-builds-header h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.community-builds-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

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

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: rgba(212, 164, 74, 0.5);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-select option {
    background: var(--dark-card);
    color: var(--text);
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
}

.refresh-icon {
    font-size: 1rem;
}

/* Community Builds Grid */
.community-builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.community-builds-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.community-builds-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
}

.community-builds-empty .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.community-builds-empty p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.community-builds-empty .empty-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

.community-builds-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
}

.community-builds-error .error-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.community-builds-error p {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.community-builds-error .error-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Community Build Card */
.community-build-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.community-build-card:hover {
    border-color: rgba(212, 164, 74, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.community-build-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.community-build-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
    flex: 1;
    word-break: break-word;
}

.community-build-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.community-build-rating .rating-stars {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
}

.community-build-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.community-build-class {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.community-build-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.community-build-details .build-race {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.community-build-details .build-date {
    opacity: 0.7;
}

.community-build-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.community-build-actions .btn-icon {
    flex: 1;
    text-align: center;
}

.community-build-actions .load-community-build {
    background: rgba(212, 164, 74, 0.1);
    border-color: rgba(212, 164, 74, 0.3);
    color: var(--gold);
}

.community-build-actions .load-community-build:hover {
    background: rgba(212, 164, 74, 0.2);
    border-color: var(--gold);
}

/* Community Builds Actions (Load More) */
.community-builds-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ============================================
   Responsive: Planner & Crafting
   ============================================ */

@media (max-width: 768px) {
    .feature-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-tab {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .archetype-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .archetype-btn {
        padding: 0.5rem 0.25rem;
    }

    .archetype-btn .archetype-name {
        font-size: 0.75rem;
    }

    .archetype-btn .archetype-role {
        display: none;
    }

    .crafting-branches {
        grid-template-columns: 1fr;
    }

    .community-builds-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .community-builds-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archetype-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planner-actions,
    .crafting-actions {
        flex-direction: column;
    }

    .planner-actions button,
    .crafting-actions button {
        width: 100%;
    }
}
