﻿:root {
    --primary-color: #FF6F0F;
    --primary-light: #FF9F45;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --shadow: 0 3px 6px rgba(0,0,0,0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-dark);
    background-color: #fff;
}

/* Header Section */
.references-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .references-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.1;
        animation: patternFloat 40s infinite linear;
    }

@keyframes patternFloat {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

.references-title {
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.references-description {
    max-width: 800px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Search Box */
.references-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-input-group {
    display: flex;
    align-items: stretch;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .search-input-group:focus-within {
        box-shadow: 0 5px 25px rgba(255, 111, 15, 0.3);
        transform: translateY(-2px);
    }

.search-input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    border: none;
    font-size: 16px;
    color: #333;
}

    .search-input:focus {
        outline: none;
    }

.search-button {
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .search-button:hover {
        background-color: #e56000;
    }

/* Filter and Sort Controls */
.references-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.references-count {
    font-size: 16px;
    color: var(--text-light);
}

    .references-count strong {
        color: var(--primary-color);
    }

.references-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-light);
}

.sort-select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sort-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 111, 15, 0.1);
    }

/* References Grid */
.references-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Reference Card Design */
.reference-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    padding: 20px;
    border: 1px solid var(--border-color);
    height: 100%;
}

    .reference-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.reference-logo {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.reference-card:hover .reference-logo {
    border-color: var(--primary-color);
}

.reference-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.reference-card:hover .reference-logo img {
    transform: scale(1.05);
}

.reference-name {
    font-size: 16px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.reference-card:hover .reference-name {
    color: var(--primary-color);
}

.reference-type {
    font-size: 14px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 30px 0;
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Filter Butonları - Alt Satır (Tam Genişlik) */
.filter-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.alphabet-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

    .alphabet-link:hover, .alphabet-link.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    /* "Tümü" butonu için özel stil */
    .alphabet-link.all-btn-pub {
        padding: 0 18px;
        min-width: 80px;
        margin-right: 10px;
        background-color: #f4f4f4;
    }

        .alphabet-link.all-btn-pub.active {
            background-color: #ff6f0f;
            color: white;
        }

        .alphabet-link.all-btn-pub:hover {
            background-color: #ff9f45;
            color: white;
        }

    /* Filter Butonları için özel stiller */
    .alphabet-link.filter-link {
        padding: 0 20px;
        min-width: 140px;
        width: auto;
        background-color: #f4f4f4;
        font-size: 14px;
    }

    .alphabet-link.demo-btn-pub.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .alphabet-link.demo-btn-pub:hover {
        background-color: var(--primary-light);
        color: white;
        border-color: var(--primary-light);
    }

    /* Abone Butonu - Turuncu (Diğerleri gibi) */
    .alphabet-link.subscriber-btn-pub.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .alphabet-link.subscriber-btn-pub:hover {
        background-color: var(--primary-light);
        color: white;
        border-color: var(--primary-light);
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .pagination-link:hover, .pagination-link.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination-link.prev, .pagination-link.next {
        width: auto;
        padding: 0 15px;
    }

    .pagination-link.disabled {
        background-color: #f1f1f1;
        color: #999;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(255, 111, 15, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No Results Message */
.no-results {
    display: none;
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: var(--text-light);
}

/* Main Container */
.libturk-main-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 30px;
}

/* Header Styling */
.libturk-category-header {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.libturk-header-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
}

.libturk-header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.libturk-title-bar {
    width: 5px;
    height: 35px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.libturk-heading {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    transition: color 0.3s ease;
}

    .libturk-heading::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), transparent);
        opacity: 0.7;
    }

.libturk-view-all {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: rgba(255, 111, 15, 0.1);
    transition: all 0.3s ease;
}

    .libturk-view-all i {
        margin-left: 8px;
        transition: all 0.3s ease;
    }

    .libturk-view-all:hover {
        background-color: var(--primary-color);
        color: white;
    }

        .libturk-view-all:hover i {
            transform: translateX(3px);
        }

.libturk-partnership-description {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

    .libturk-partnership-description p {
        color: var(--text-light);
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
        text-align: center;
    }

/* Publisher Card and Pagination Styles */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.publisher-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
    border: 1px solid #eaeaea;
    will-change: transform;
}

    .publisher-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 15px 25px rgba(255, 111, 15, 0.1);
        border-color: rgba(255, 111, 15, 0.3);
    }

.publisher-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    text-decoration: none;
    height: 100%;
    position: relative;
}

.search-clear {
    color: red;
    font-size: 2rem;
    padding-right: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

/* YENİ: Demo Badge Stil - Turuncu Tema */
.demo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 111, 15, 0.25);
    z-index: 10;
}

.publisher-logo {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.publisher-card:hover .publisher-logo {
    border-color: rgba(255, 111, 15, 0.3);
    transform: scale(1.05);
}

.publisher-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .publisher-logo img.loaded {
        opacity: 1;
    }

.publisher-info {
    text-align: center;
    padding-top: 5px;
    width: 100%;
}

.publisher-name {
    font-size: 16px;
    color: #333;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.publisher-card:hover .publisher-name {
    color: #ff6f0f;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    padding: 0 10px;
    font-size: 14px;
}

    .pagination-link:hover {
        background-color: #ff9f45;
        color: white;
        border-color: #ff9f45;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(255, 111, 15, 0.2);
    }

    .pagination-link.active {
        background-color: #ff6f0f;
        color: white;
        border-color: #ff6f0f;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(255, 111, 15, 0.3);
    }

    .pagination-link.disabled {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        border-color: #e0e0e0;
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

/* Loading Spinner Styles */
.loading-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 20px 0;
}

    .loading-spinner p {
        color: #666;
        font-size: 16px;
        font-weight: 500;
    }

/* No Results Message */
.no-results {
    background-color: #fff8f3;
    border: 1px solid rgba(255, 111, 15, 0.2);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    display: none;
    margin: 30px 0;
}

    .no-results p {
        color: #ff6f0f;
        font-size: 18px;
        font-weight: 500;
        margin: 0;
    }

/* Improved Stats Section Styles */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 20px;
    margin-top: 50px;
    border-top: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

    .stats-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6f0f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 1;
    }

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-item {
    background-color: white;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .stat-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #ff6f0f, #ff9f45);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .stat-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(255, 111, 15, 0.1);
    }

        .stat-item:hover::after {
            transform: scaleX(1);
        }

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.1) 0%, rgba(255, 159, 69, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ff6f0f;
    font-size: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.2) 0%, rgba(255, 159, 69, 0.2) 100%);
}

.stat-value {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(to right, #ff6f0f, #ff9f45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .references-title {
        font-size: 26px;
    }

    .references-description {
        font-size: 14px;
        padding: 0 10px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .reference-logo {
        width: 120px;
        height: 120px;
    }

    .reference-name {
        font-size: 14px;
    }

    .reference-type {
        font-size: 12px;
    }

    .alphabet-nav {
        gap: 3px;
        padding: 10px;
    }

    .alphabet-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .filter-buttons-row {
        gap: 8px;
        margin-top: 8px;
        padding-top: 10px;
    }

    .alphabet-link.filter-link {
        min-width: 100px;
        font-size: 12px;
        padding: 0 12px;
    }

    .publisher-logo {
        width: 120px;
        height: 120px;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .libturk-view-all {
        display: none;
    }

    .search-input-group {
        width: 95%;
        margin: auto;
    }

    .search-input {
        height: 50px;
    }

    .search-button {
        height: 50px;
    }

    .demo-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 40px 15px;
    }

    .stat-value {
        font-size: 30px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .references-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .references-sort {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .alphabet-link {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

        /* YENİ: Çok küçük ekranlarda filter butonları */
        .alphabet-link.all-btn-pub,
        .alphabet-link.demo-btn-pub,
        .alphabet-link.subscriber-btn-pub {
            min-width: 80px;
            font-size: 11px;
            padding: 0 10px;
			height: 40px;
			text-align: center;
        }

    .pagination-link {
        width: 36px;
        height: 36px;
    }

    .publisher-link {
        padding: 20px 15px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
