/* Wrapper & Reset */
.bircher-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #334155;
    max-width: 1470px;
    margin: 0 auto;
    //background: #f8fafc;
    min-height: 400px;
    box-sizing: border-box;
}

.bircher-wrapper * {
    box-sizing: border-box;
}

/* Header - Daha Kompakt */
.bircher-header {
    background-color: #0f172a;
    color: white;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}
.bircher-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    line-height: 1.2;
}
.bircher-header p {
    margin: 0.25rem 0 0;
    opacity: 0.9;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95) !important;
}

/* Container */


/* Mobile Toggle */
.bircher-mobile-btn {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    color: #334155;
}

/* Filters Panel - Daha Kompakt */
.bircher-filters {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1rem;
    align-items: end;
}

.filter-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* İkon hizalaması için Wrapperlar */
.input-wrapper, 
.select-wrapper {
    position: relative;
    width: 100%;
}

/* Inputs */
.bircher-filters input[type="text"], 
.bircher-filters select {
    width: 100%;
    height: 38px;
    padding: 0 0.75rem 0 2rem;
    //background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    margin: 0;
    line-height: normal;
}

.bircher-filters select {
    padding-left: 0.75rem;
    padding-right: 2rem;
    background-position: right 0.5rem center;
    background-size: 0.85rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Status Bar */
.filter-status {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
#result-count { font-size: 0.75rem; color: #64748b; font-weight: 600; }
.clear-btn { font-size: 0.8rem; padding: 0.25rem 0.5rem;margin-left: auto;
    background-color: #b91c1c;
    color: white;
    font-weight: 700; }

/* Active Badge */
.active-badge {
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}
.badge-text {
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
}
.badge-desc { font-size: 0.75rem; }

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card-header {
    background: #e0eaf4;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b !important;
}

.cat-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    color: #64748b;
    background: white;
    white-space: nowrap; /* Etiket kırılmasın */
}

.file-count {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    color: #64748b;
    white-space: nowrap;
}

/* File List */
.file-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.1s;
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: #e8f2fb; }

/* İkon Kutusu */
.file-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.file-icon svg {
    width: 18px;
    height: 18px;
}

/* İkon Renkleri */
.icon-red { background: #ffffff; color: #265edc; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #f0fdf4; color: #16a34a; }

.file-info h4 {
    margin: 0 0 0.1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155 !important;
}
.file-item:hover h4 { color: #f70d0d  !important; }

.meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.type {
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.7rem;
}

.type-default { background: #f1f5f9; color: #475569; }
.type-blue { background: #dbeafe; color: #1d4ed8; }
.type-green { background: #dcfce7; color: #15803d; }

.download-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none !important;
    font-size: 1.1rem;
    border: none;
    line-height: 1;
    margin-left: auto;
}
.download-btn:hover {
    background: #dc2626;
    color: white;
}

/* Pagination - Minimal */
.bircher-pagination {
    margin-top: 2rem;
    gap: 0.25rem;
}
.page-btn, .page-num {
    height: 2rem;
    min-width: 2rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #64748b;
    padding: 0;
}
.page-num.active {
    background: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

@media (max-width: 768px) {
    .bircher-mobile-btn { display: flex; }
    .hidden-mobile { display: none; }
    .filter-grid { grid-template-columns: 1fr; }
    .file-item { padding: 0.75rem; }
}

/* ... ÜST KISIM AYNI KALSIN ... */

/* --- Elementor Widget Stilleri --- */
.bircher-widget-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.bircher-widget-title {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.bircher-widget-list .bircher-widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.bircher-widget-list .bircher-widget-item:last-child {
    border-bottom: none;
}

.bircher-widget-list .bircher-widget-item:hover {
    background: #fff1f2;
}

.bw-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.bw-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bw-icon.icon-red { background: #fee2e2; color: #dc2626; }
.bw-icon.icon-green { background: #dcfce7; color: #16a34a; }
.bw-icon.icon-blue { background: #dbeafe; color: #2563eb; }

.bw-info {
    line-height: 1.2;
}

.bw-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}
.bircher-widget-item:hover .bw-title {
    color: #b91c1c;
}

.bw-meta {
    font-size: 0.7rem;
    color: #94a3b8;
}

.bw-type {
    font-weight: 600;
    color: #64748b;
}

.bw-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #b91c1c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.bw-download:hover {
    background: #991b1b;
    color: white;
}

.bw-download span {
    display: none; /* Mobilde yazıyı gizle, sadece ikon */
}

@media (min-width: 640px) {
    .bw-download span {
        display: inline;
    }
}