/* ================================
   CLAUDE CODE PLATFORM 2025 - STYLES
   ================================ */

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code, pre {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
}

/* ===== CUSTOM SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* Hide scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== TAB NAVIGATION ===== */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 0.5rem;
    color: rgba(192, 132, 252, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: rgb(192, 132, 252);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(219, 39, 119, 0.3));
    border-color: rgba(147, 51, 234, 0.6);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Large tab buttons for main navigation */
.tab-btn-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    color: rgba(192, 132, 252, 0.9);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    flex: 1;
}

.tab-btn-large:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: rgb(192, 132, 252);
    transform: translateY(-2px);
}

.tab-btn-large.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(219, 39, 119, 0.4));
    border-color: rgba(147, 51, 234, 0.7);
    color: white;
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
}

.tab-btn-large .badge {
    padding: 0.25rem 0.625rem;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(250, 204, 21);
    text-transform: uppercase;
}

.tab-btn-large .badge-primary {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: rgb(52, 211, 153);
}

.tab-btn .badge {
    padding: 0.125rem 0.5rem;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(250, 204, 21);
    text-transform: uppercase;
}

.tab-btn .badge-primary {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: rgb(52, 211, 153);
}

/* ===== FILTER BUTTONS (News) ===== */
.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    color: rgba(203, 213, 225, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    color: rgb(103, 232, 249);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
    border-color: rgba(6, 182, 212, 0.6);
    color: rgb(103, 232, 249);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTAs ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-primary {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: white;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.5);
}

.cta-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

.cta-accent {
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: rgb(15, 23, 42);
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.4);
}

.cta-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(234, 179, 8, 0.5);
}

/* ===== STATS CARDS ===== */
.stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(192, 132, 252, 0.8);
    font-weight: 600;
}

/* ===== 2025 FEATURE CARDS ===== */
.feature-card-2025 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card-2025:hover {
    border-color: rgba(234, 179, 8, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(250, 204, 21);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: rgba(250, 204, 21, 0.7);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 0.5rem;
    color: rgb(250, 204, 21);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-btn:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.6);
    transform: translateX(5px);
}

/* ===== QUICK START CARDS ===== */
.quick-start-card {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(219, 39, 119, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-start-card:hover {
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #9333ea, #db2777);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.quick-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(219, 39, 119, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 0.5rem;
    color: rgb(192, 132, 252);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-start-btn:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(219, 39, 119, 0.3));
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
}

/* ===== TERMINAL STYLES ===== */
.terminal-window {
    background: #1e1e1e;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.875rem;
    color: #4ade80;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terminal-prompt {
    color: #9333ea;
    font-weight: 700;
}

.terminal-user {
    color: #4ade80;
}

.terminal-success {
    color: #4ade80;
}

.terminal-error {
    color: #ef4444;
}

.terminal-warning {
    color: #eab308;
}

.terminal-info {
    color: #c4b5fd;
}

.terminal-command {
    color: #fb923c;
}

.terminal-tool {
    color: #22d3ee;
}

.terminal-progress {
    color: #60a5fa;
}

.terminal-input-area {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.875rem;
}

/* ===== SKILL CARD ===== */
.skill-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 2.5rem;
}

.skill-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(192, 132, 252);
}

.skill-description {
    font-size: 0.875rem;
    color: rgba(192, 132, 252, 0.8);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: rgb(192, 132, 252);
}

.skill-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9333ea, #db2777);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

/* ===== MCP SERVER CARD ===== */
.mcp-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(6, 78, 59, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mcp-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.mcp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mcp-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mcp-icon {
    font-size: 2.5rem;
}

.mcp-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(34, 211, 238);
}

.mcp-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(52, 211, 153);
    text-transform: uppercase;
}

.mcp-description {
    font-size: 0.875rem;
    color: rgba(34, 211, 238, 0.8);
    margin-bottom: 1rem;
}

.mcp-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mcp-capability {
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: rgb(34, 211, 238);
}

.mcp-setup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcp-setup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-slide-in {
    animation: slideInUp 0.5s ease-out;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.95));
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(192, 132, 252);
}

.modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 0.5rem;
    color: rgb(192, 132, 252);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.6);
}

.modal-body {
    padding: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tab-btn span:not(.badge) {
        display: none;
    }

    .tab-btn {
        padding: 0.75rem;
        justify-content: center;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-card-2025 {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .modal-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CATEGORY FILTER BUTTONS ===== */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    color: rgba(192, 132, 252, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-filter-btn:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    color: rgb(192, 132, 252);
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(219, 39, 119, 0.3));
    border-color: rgba(147, 51, 234, 0.6);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(192, 132, 252);
}

.badge-new {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(251, 146, 60, 0.3));
    border-color: rgba(234, 179, 8, 0.5);
    color: rgb(250, 204, 21);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(234, 179, 8, 0.8);
        transform: scale(1.05);
    }
}

.category-filter-btn .badge {
    padding: 0.125rem 0.5rem;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(250, 204, 21);
}
