/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F6F8FA;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Stilleri */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo-highlight {
    color: #2ecc71;
}

.logo a {
    text-decoration: none;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search .search-form {
    position: relative;
}

.header-search .search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s;
    padding: 0.6rem 1rem;
}

.header-search .search-input-group:focus-within {
    border-color: #3498db;
}

.search-icon {
    color: #adb5bd;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.header-search .search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    color: #333;
}

.header-search .search-input-group input::placeholder {
    color: #adb5bd;
}



.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: #2ecc71;
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Ana İçerik */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0 0 0;
}

.content-area {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

/* Yazı Kartları */
.posts-grid {
    display: grid;
    gap: 2rem;
}

.post-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-content {
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.default-thumbnail {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
}

.default-thumbnail i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.default-thumbnail span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.9;
}

.default-thumbnail-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
}



.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-meta i {
    margin-right: 0.3rem;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    align-self: flex-end;
    margin-top: auto;
}

.read-more-btn:hover {
    color: #2980b9;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Arama Kutusu */

/* Popüler Yazılar */
.popular-posts, .recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.3s;
}

.recent-post-item:hover {
    background: #f8f9fa;
}

.popular-post-thumb, .recent-post-thumb {
    position: relative;
    flex-shrink: 0;
}

.popular-post-thumb img, .recent-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.popularity-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.popularity-indicator.low {
    background: #95a5a6;
    color: #fff;
}

.popularity-indicator.medium {
    background: #f39c12;
    color: #fff;
}

.popularity-indicator.high {
    background: #e74c3c;
    color: #fff;
}

.popular-post-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recent-post-content h4, .recent-post-content h4 {
    margin-bottom: 0.5rem;
}

.recent-post-content a, .recent-post-content a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recent-post-content a:hover, .recent-post-content a:hover {
    color: #3498db;
}

.post-views, .post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Kategori Listesi */

/* Email Abonelik Bölümü */
.newsletter-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.newsletter-text h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.newsletter-form {
    flex-shrink: 0;
}

.email-form .form-group {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 400px;
}

.email-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.email-form input::placeholder {
    color: #adb5bd;
}

.email-form button {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.email-form button:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 1rem 0;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
        order: 4;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .post-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .post-content {
        text-align: left;
    }
    
    .read-more-btn {
        align-self: flex-end;
        margin-top: 1rem;
    }
    
    .post-thumbnail img {
        height: 200px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .sidebar {
        order: 1;
    }
    
    .content-area {
        order: 0;
    }
    
    /* Mobilde yazıların görünmesi için */
    .posts-grid {
        display: block;
    }
    
    .post-card {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .post-thumbnail {
        margin-bottom: 1rem;
    }
    
    .post-thumbnail img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* Sayfalama Stilleri */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-number.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Kategori ve Etiket Sayfaları */
.category-header, .tag-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: #fff;
}

.category-header h1, .tag-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.category-stats, .tag-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.post-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Snippet İşareti */
.post-type.snippet {
    background: #e74c3c;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Boş Sayfa */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-posts-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-posts h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive Sayfalama */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: -1;
    }
    
    .category-header h1, .tag-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-stats, .tag-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-text h3 {
        font-size: 1.3rem;
    }
    
    .email-form .form-group {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .email-form button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobilde e-posta aboneliği gizle */
    .newsletter-section {
        display: none;
    }
}

/* Etiket Bağlantıları Stilleri */
.post-body a[href*="/etiket/"],
.post-excerpt a[href*="/etiket/"],
.result-excerpt a[href*="/etiket/"] {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 2px dashed #ffd700 !important;
    transition: border-bottom-color 0.3s ease;
}

.post-body a[href*="/etiket/"]:hover,
.post-excerpt a[href*="/etiket/"]:hover,
.result-excerpt a[href*="/etiket/"]:hover {
    border-bottom-color: #ffed4e !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Yazı başlığı bağlantıları için farklı stil */
.post-body a[href*=".html"]:not([href*="/etiket/"]),
.post-excerpt a[href*=".html"]:not([href*="/etiket/"]),
.result-excerpt a[href*=".html"]:not([href*="/etiket/"]) {
    color: #3498db !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.post-body a[href*=".html"]:not([href*="/etiket/"]):hover,
.post-excerpt a[href*=".html"]:not([href*="/etiket/"]):hover,
.result-excerpt a[href*=".html"]:not([href*="/etiket/"]):hover {
    color: #2980b9 !important;
    text-decoration: underline !important;
}

/* Cerex Warning Banner */
.cerex-warning-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cerex-warning-banner.show {
    transform: translateY(0);
}

.cerex-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cerex-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.cerex-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cerex-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
}

.cerex-message {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.cerex-text-mobile {
    display: block;
}

.cerex-text-desktop {
    display: none;
}

.cerex-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cerex-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cerex-accept {
    background: #fff;
    color: #667eea;
}

.cerex-accept:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.cerex-deny {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cerex-deny:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cerex-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.cerex-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cerex-warning-banner {
        padding: 0.25rem 0.5rem;
    }
    
    .cerex-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .cerex-left {
        width: 100%;
        justify-content: center;
    }
    
    .cerex-text-mobile {
        display: block;
    }
    
    .cerex-text-desktop {
        display: none;
    }
    
    .cerex-actions {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .cerex-btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
    
    .cerex-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (min-width: 769px) {
    .cerex-text-mobile {
        display: none;
    }
    
    .cerex-text-desktop {
        display: block;
    }
}
