/**
 * Glossary Detail Page Styles
 * Modern & Professional Design
 */

/* ============================================
   TERM DETAIL PAGE
============================================ */

.glossary-content {
    background: #ffffff;
    padding: 80px 0;
}

/* Hero Badge */
.term-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 102, 204, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    color: #0066CC;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.term-hero-badge:hover {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
    transform: translateY(-2px);
}

/* Main Content Area */
.glossary-main {
    background: white;
}

.glossary-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Quick Summary Box */
.quick-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.quick-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quick-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.quick-summary-text {
    color: white;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Content Grid */
.glossary-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

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

/* Main Content Column */
.glossary-content-main {
    /* Main content area */
}

/* Content Section */
.content-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 45px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.content-section:hover {
    border-color: #0066CC;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.section-title .icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.section-content {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Alternative Names */
.alt-names-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #d6e9ff;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
}

.alt-names-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 20px;
}

.alt-names-title i {
    font-size: 26px;
}

.alt-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.alt-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #0066CC;
    border-radius: 50px;
    color: #0066CC;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.alt-name-tag:hover {
    background: #0066CC;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.alt-name-tag i {
    font-size: 16px;
}

/* Sidebar */
.glossary-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .glossary-sidebar {
        position: static;
    }
}

/* Info Card */
.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #0066CC;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-card-title i {
    font-size: 24px;
    color: #0066CC;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-icon i {
    font-size: 20px;
    color: white;
}

.info-item-content {
    flex: 1;
}

.info-item-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.info-item-value a {
    color: #0066CC;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item-value a:hover {
    color: #004999;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.cta-icon-wrapper i {
    font-size: 40px;
    color: white;
}

.cta-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: white;
    color: #10b981;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: #059669;
}

.cta-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Related Terms Section */
.related-terms-section {
    margin-top: 60px;
    padding: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 30px;
}

.related-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-header-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.related-header-title i {
    color: #0066CC;
    font-size: 40px;
}

.related-header-subtitle {
    font-size: 17px;
    color: #6b7280;
    margin: 0;
}

.related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.related-term-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.related-term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.related-term-card:hover::before {
    transform: scaleX(1);
}

.related-term-card:hover {
    border-color: #0066CC;
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15);
}

.related-term-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.related-term-card:hover .related-term-icon {
    transform: rotate(10deg) scale(1.1);
}

.related-term-icon i {
    font-size: 28px;
    color: white;
}

.related-term-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.related-term-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.related-term-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0066CC;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-term-card:hover .related-term-link {
    gap: 15px;
}

.related-term-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.related-term-card:hover .related-term-link i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .glossary-content {
        padding: 40px 0;
    }
    
    .quick-summary {
        padding: 30px;
    }
    
    .quick-summary-text {
        font-size: 17px;
    }
    
    .content-section {
        padding: 30px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-content {
        font-size: 16px;
    }
    
    .related-terms-section {
        padding: 40px 25px;
    }
    
    .related-header-title {
        font-size: 28px;
    }
    
    .related-terms-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GLOSSARY LISTING (Modern Tüp Bebek Style)
   ============================================ */

.glossary-listing-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.glossary-filter-bar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Group */
.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label i {
    font-size: 18px;
    color: #667eea;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 18px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.filter-btn.active {
    background: #1a1f3a;
    color: white;
    border-color: #1a1f3a;
}

.alphabet-filter .filter-btn {
    min-width: 40px;
    padding: 8px 12px;
    justify-content: center;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #333;
}

.view-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-dropdown select {
    padding: 10px 40px 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    padding: 10px 18px;
    border-radius: 10px;
}

.results-info i {
    font-size: 18px;
    color: #667eea;
}

/* Terms Grid */
.glossary-terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.glossary-terms-grid.list-view {
    grid-template-columns: 1fr;
}

.term-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.term-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.term-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.term-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.term-title a:hover {
    color: #667eea;
}

.term-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.term-badge i {
    font-size: 14px;
    opacity: 0.9;
}

.term-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.term-badge:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.term-description {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.term-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.term-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modern Stat Badges */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-badge i {
    font-size: 16px;
}

.stat-badge span {
    white-space: nowrap;
}

/* Success Badge - Faydalı */
.stat-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-badge-success i {
    color: #10b981;
}

.stat-badge-success:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* Info Badge - İşaretlendi */
.stat-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-badge-info i {
    color: #3b82f6;
}

.stat-badge-info:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* OLD stat-item styles (keep for backwards compatibility) */
.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.stat-item i {
    font-size: 16px;
    color: #10b981;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f7ff;
    color: #667eea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.detail-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(3px);
}

.detail-link i {
    font-size: 16px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-results i {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Listing Responsive */
@media (max-width: 992px) {
    .glossary-terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .glossary-filter-bar {
        padding: 20px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .alphabet-filter .filter-btn {
        min-width: 35px;
        padding: 7px 10px;
    }
}

@media (max-width: 576px) {
    .glossary-listing-section {
        padding: 40px 0 60px;
    }
    
    .glossary-terms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .term-card {
        padding: 22px;
    }
    
    .term-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-link {
        width: 100%;
        justify-content: center;
    }
}
