/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: #4299e1;
    background: #ebf8ff;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Sayfa Geçişleri */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.selected-category {
    background: #ebf8ff;
    border: 1px solid #4299e1;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.selected-category p {
    margin: 0;
    color: #2d3748;
    font-weight: 500;
}

.selected-category span {
    color: #4299e1;
    font-weight: 600;
    text-transform: capitalize;
}

.btn-clear {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: #c53030;
}

/* Butonlar */
.btn-primary {
    background: #4299e1;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: white;
    color: #4299e1;
    border: 2px solid #4299e1;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #4299e1;
    color: white;
}

.btn-favorite {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    background: #fed7d7;
}

.btn-favorite.active {
    color: #e53e3e;
}

/* İçerik Kartları */
.content-section {
    margin-top: 2rem;
}

.content-section.hidden {
    display: none;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.content-header h3 {
    font-size: 1.8rem;
    color: #1a202c;
    font-weight: 700;
    flex: 1;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-rendering: optimizeLegibility;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.02);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin: 2rem auto;
    text-align: left;
    max-width: 600px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    position: relative;
}

.content-text::before {
    content: '"';
    font-size: 3rem;
    color: #4299e1;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.content-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sayfa Başlıkları */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-header p {
    font-size: 1rem;
    color: #718096;
}

/* Kategoriler */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.category-card.selected {
    background: #ebf8ff;
    border-color: #4299e1;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Favoriler */
.favorites-container {
    display: grid;
    gap: 1rem;
}

.favorite-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.favorite-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.favorite-item p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.favorite-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.remove-favorite {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-favorite:hover {
    background: #c53030;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

/* Hakkında */
.about-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 2rem;
}

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

.about-section h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-section p {
    color: #4a5568;
    line-height: 1.6;
}

.about-section ul {
    color: #4a5568;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.about-section ul li {
    margin-bottom: 0.3rem;
}

.legal {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.legal a {
    color: #4299e1;
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #4299e1;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item strong {
    color: #2d3748;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.feature-item p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-content p {
    margin-bottom: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .content-text {
        font-size: 1rem;
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .content-text::before {
        font-size: 2rem;
        top: -0.3rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .content-actions {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .favorite-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .selected-category {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .content-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .content-text {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0.8rem;
    }
    
    .content-header h3 {
        font-size: 1.4rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
}

/* İstatistikler */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-stats {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-stats h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container {
    display: grid;
    gap: 1rem;
}

.category-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-bar-label {
    min-width: 80px;
    font-weight: 500;
    color: #4a5568;
    text-transform: capitalize;
}

.category-bar-track {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.category-bar-value {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: #4299e1;
}

.global-stats {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.global-stats h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.global-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #48bb78;
}

.global-stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.global-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #48bb78;
}

.global-stat-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}