/**
 * Codeon SDS Manager - Premium Frontend CSS
 */

:root {
	--sds-primary: #1a1a1a;
	--sds-secondary: #666;
	--sds-bg-light: #f8f9fa;
	--sds-card-bg: #ffffff;
	--sds-border: #e9ecef;
	--sds-accent: #007bff;
}

.codeon-sds-library {
	padding: 40px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.codeon-sds-library__header h1 {
	margin-bottom: 25px;
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--sds-primary);
	letter-spacing: -0.02em;
}

/* Search bar */
.codeon-sds-library__search {
	margin-bottom: 30px;
	position: relative;
	max-width: 600px;
}

.codeon-sds-library__search input {
	width: 100%;
	padding: 15px 20px 15px 50px !important;
	border: 1px solid var(--sds-border);
	border-radius: 12px;
	background: var(--sds-card-bg);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	font-size: 16px;
	transition: all 0.3s ease;
}

.codeon-sds-library__search input:focus {
	outline: none;
	border-color: var(--sds-primary);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.codeon-sds-library__search .search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sds-secondary);
	pointer-events: none;
	display: flex;
	align-items: center;
	z-index: 2;
}

.codeon-sds-library__search .search-icon svg {
	width: 20px;
	height: 20px;
}

/* Alphabet Filter */
.codeon-sds-library__alphabet {
	margin-bottom: 40px;
	padding: 15px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border-bottom: 1px solid var(--sds-border);
}

.codeon-sds-library__alphabet a {
	padding: 8px 14px;
	text-decoration: none;
	color: var(--sds-secondary);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	background: transparent;
}

.codeon-sds-library__alphabet a:hover {
	background: var(--sds-bg-light);
	color: var(--sds-primary);
}

.codeon-sds-library__alphabet a.active {
	background: var(--sds-primary);
	color: #fff;
}

/* Grid Layout */
.codeon-sds-library__grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
	.codeon-sds-library__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.codeon-sds-library__grid {
		grid-template-columns: 1fr;
	}
}

.codeon-sds-library__brand {
	background: var(--sds-card-bg);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid var(--sds-border);
	display: flex;
	flex-direction: column;
}

.codeon-sds-library__brand:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.codeon-sds-library__brand-header {
	padding: 20px 25px;
	background: var(--sds-bg-light);
	border-bottom: 1px solid var(--sds-border);
}

.codeon-sds-library__brand-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--sds-primary);
}

.codeon-sds-library__brand-docs {
	padding: 15px;
}

.codeon-sds-library__brand-docs ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.codeon-sds-library__brand-docs li {
	margin-bottom: 10px;
}

.codeon-sds-library__brand-docs li:last-child {
	margin-bottom: 0;
}

.codeon-sds-library__brand-docs li a {
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--sds-border);
	border-radius: 10px;
	color: var(--sds-primary);
	transition: all 0.2s ease;
}

.codeon-sds-library__brand-docs li a:hover {
	border-color: var(--sds-primary);
	background: var(--sds-bg-light);
}

.codeon-sds-library__brand-docs .document-icon {
	width: 32px;
	height: 32px;
	background: var(--sds-bg-light);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	flex-shrink: 0;
	color: var(--sds-secondary);
}

.codeon-sds-library__brand-docs .document-icon svg {
	width: 18px;
	height: 18px;
}

.codeon-sds-library__brand-docs .document-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.codeon-sds-library__brand-docs .document-title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
	line-height: 1.2;
}

.codeon-sds-library__brand-docs .document-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.codeon-sds-library__brand-docs .document-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--sds-border);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--sds-secondary);
}

.codeon-sds-library__brand-docs .document-lang {
	font-size: 10px;
	font-weight: 700;
	color: var(--sds-secondary);
}

.codeon-sds-library__brand-docs .download-arrow {
	color: var(--sds-border);
	transition: transform 0.2s ease, color 0.2s ease;
}

.codeon-sds-library__brand-docs li a:hover .download-arrow {
	color: var(--sds-primary);
	transform: translateX(3px);
}

.codeon-sds-library__brand-docs .download-arrow svg {
	width: 18px;
	height: 18px;
}

/* Product link aggressive reset */
body div.codeon-product-sds-link {
	margin: 20px 0 !important;
	border-top: 1px solid #efefef !important;
	padding-top: 15px !important;
	clear: both !important;
	display: block !important;
    text-align: left !important;
	background: transparent !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

body div.codeon-product-sds-link a {
	display: inline-flex !important;
	align-items: center !important;
	color: #666 !important;
	text-decoration: none !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	transition: color 0.2s ease !important;
	line-height: normal !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
    outline: none !important;
}

body div.codeon-product-sds-link a:hover {
	color: #000 !important;
	opacity: 1 !important;
	background: transparent !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body div.codeon-product-sds-link .sds-icon {
	margin-right: 10px !important;
	display: flex !important;
	align-items: center !important;
	color: #999 !important;
	background: transparent !important;
    padding: 0 !important;
}

body div.codeon-product-sds-link .sds-icon svg {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body div.codeon-product-sds-link a:hover .sds-icon {
	color: #000 !important;
}

.codeon-sds-hidden {
	display: none !important;
}
