/* services/assets/css/style.css */

/* Back Navigation Link */
.back-nav {
    margin: 20px 0;
}
.back-nav a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.back-nav a:hover {
    color: var(--accent);
}

/* Product Header Area */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.product-title h1 {
    font-family: var(--font-head);
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.product-subtitle {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: #fff !important; /* Force white text */
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--accent-glow);
}

.download-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Tab Container */
.tab-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* Tab Header (Scrollable on Mobile) */
.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.tab-header::-webkit-scrollbar { display: none; } /* Chrome */

.tab-btn {
    padding: 18px 25px;
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--accent);
    background: rgba(125,125,125,0.05);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px; /* Blend into content */
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeTab 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: var(--font-head);
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.tab-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Feature List (Bullets) */
.feature-list {
    list-style: none;
    margin-top: 15px;
}

.feature-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    font-size: 15px;
}

.feature-list li::before {
    content: "■";
    color: var(--accent);
    margin-right: 12px;
    font-size: 10px;
    margin-top: 7px; /* Align with text */
}

/* Code Snippet Box */
.code-block {
    background: #0f1218;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    color: #a9b7c6;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 20px;
}

#features h2 {
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 30px;
    text-align: left;
}

.cap-block {
    margin-bottom: 24px; /* Space after each capability */
}

.cap-block:last-child {
    margin-bottom: 0;
}

.cap-title {
    color: var(--accent); /* Accent color for titles */
    font-weight: 700;
}

/* Container Spacing */
.code-section {
    margin: 30px 0;
}

/* Header Styles */
.code-section-header {
    margin-bottom: 16px;
}

.code-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.code-section-desc {
    color: #718096;
    font-size: 15px;
    line-height: 1.5;
}

/* Editor Window Styles */
.code-block {
    width: 100%;
    margin: 0;
    background: #2d2d2d;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'JetBrains Mono', monospace;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.code-block pre {
    margin: 0 !important;
    padding: 20px !important;
    overflow-x: auto; /* Horizontal scroll only */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4a5568 transparent; /* Firefox thumb/track */
    background: none;
}

.code-block pre::-webkit-scrollbar {
    height: 8px; /* Thin horizontal scrollbar */
}

.code-block pre::-webkit-scrollbar-track {
    background: transparent;
}

.code-block pre::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.download-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding-left: 24px;
}

.kw { color: #cc7832; } /* Keyword orange */
.str { color: #6a8759; } /* String green */
.num { color: #6897bb; } /* Number blue */
.com { color: #808080; } /* Comment grey */

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    .product-header { flex-direction: column; align-items: flex-start; }
    .tab-content { padding: 25px; }
}
