/* ─── TOOLKIT LIBRARY (Elite Dark Theme) ─── */

:root {
    --tk-bg: #0b0b0b;
    --tk-gold: #b8943f;
    --tk-gold-dim: rgba(184, 148, 63, 0.3);
    --tk-border: rgba(255, 255, 255, 0.08);
    --tk-card-bg: rgba(255, 255, 255, 0.02);
    --tk-text: #fff;
    --tk-text-muted: #aaa;
}

/* ─── LAYOUT ─── */
.tk-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 4rem;
}

.tk-section-home {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── PREMIUM HERO SECTION ─── */
.tk-hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: #0a0a0a;
}

.tk-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle at 0% 50%, rgba(184, 148, 63, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.tk-hero .tk-container {
    position: relative;
    z-index: 2;
}

.tk-hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: tk-fade-up 1s ease-out;
}

@keyframes tk-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tk-hero-eyebrow {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tk-gold);
    border: 1px solid rgba(184, 148, 63, 0.2);
    display: inline-block;
    padding: 0.4rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: rgba(184, 148, 63, 0.03);
}

.tk-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.tk-hero-title em {
    color: var(--tk-gold);
    font-style: italic;
}

.tk-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--tk-text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.tk-library-page {
    background: #000;
    color: var(--tk-text);
    padding: 2rem 0 8rem;
    position: relative;
}

/* ─── SEARCH & FILTERS ─── */
.tk-filters {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.tk-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.tk-filter-search {
    flex-grow: 1;
    display: flex;
    gap: 0.5rem;
    min-width: 300px;
}

.tk-filter-search input {
    flex-grow: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.tk-filter-search input:focus {
    outline: none;
    border-color: var(--tk-gold);
    box-shadow: 0 0 10px rgba(184, 148, 63, 0.2);
}

.tk-filter-search button {
    background: var(--tk-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.tk-filter-search button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.tk-filter-pillar select {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8943f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: 0.3s;
    min-width: 200px;
}

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

.tk-filter-reset {
    font-size: 0.8rem;
    color: var(--tk-text-muted);
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.tk-filter-reset:hover {
    color: var(--tk-gold);
    border-color: var(--tk-gold);
}

@media (max-width: 768px) {
    .tk-filter-search { width: 100%; min-width: 0; }
    .tk-filter-pillar { width: 100%; }
    .tk-filter-pillar select { width: 100%; }
}

/* ─── TOOLKIT GRID ─── */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

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

@media (max-width: 768px) {
    .tk-grid { grid-template-columns: 1fr; }
}

.tk-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tk-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 148, 63, 0.3);
    background: #161616;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 40px rgba(184, 148, 63, 0.05);
}

.tk-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(184, 148, 63, 0.05);
    border: 1px solid rgba(184, 148, 63, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    color: var(--tk-gold);
    transition: 0.4s;
}

.tk-card:hover .tk-icon-box {
    background: var(--tk-gold);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(184, 148, 63, 0.3);
}

.tk-card h2,
.tk-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.tk-card .tk-description {
    font-size: 0.95rem;
    color: var(--tk-text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.tk-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.tk-btn-download:hover {
    color: var(--tk-gold);
    gap: 1rem;
}

/* ─── EMPTY STATE ─── */
.tk-empty {
    text-align: center;
    padding: 5rem 0;
    color: var(--tk-text-muted);
}
