﻿/* Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.date-time {
    color: #666;
    font-size: 14px;
}

.site-title {
    margin: 20px 0;
}

.site-title a {
    color: #ff6b35;
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
}

.site-subtitle {
    color: #333;
    font-size: 1.1rem;
}

/* Navigation */
.main-nav {
    background: white;
    padding: 15px 0;
    border-bottom: 2px solid #007bff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-icons {
    display: flex;
    gap: 15px;
}

.nav-icons i {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

/* Content Grid - Index Page */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Content Grid - Post Page */
.post-page .content-grid {
    display: flex;
    gap: 30px;
}

.post-page .post-content {
    flex: 2;
}

/* Featured Post - Index Page */
.featured-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.category-tag {
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.featured-title a {
    color: #333;
    text-decoration: none;
}

.featured-meta {
    color: #666;
    font-size: 14px;
}

/* Post Content - Post Page */
.post-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-image {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    padding: 20px;
}

.post-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-meta i {
    margin-right: 5px;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.post-body {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
}

.post-body h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    color: #333;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

/* Post Actions - Post Page */
.post-actions {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn i {
    font-size: 16px;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.tag:hover {
    background: #007bff;
    color: white;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.sidebar-tabs {
    display: flex;
    background: #f8f9fa;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    background: #007bff;
    color: white;
    border-bottom-color: #007bff;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-article {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.sidebar-article-content h4 a {
    color: #333;
    text-decoration: none;
}

.sidebar-article-content .category {
    color: #007bff;
    font-size: 12px;
    margin-bottom: 5px;
}

.sidebar-article-content .category a {
    color: #007bff;
    text-decoration: none;
}

.sidebar-article-content .date {
    color: #666;
    font-size: 12px;
}

/* Article Grid - Index Page */
.article-grid {
    margin-top: 30px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-category {
    color: #007bff;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-category a {
    color: #007bff;
    text-decoration: none;
}

.article-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 65px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

/* Pagination - Index Page */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-number {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-number:hover {
    background: #f8f9fa;
}

/* For You Section - Index Page */
.for-you-section {
    background: #007bff;
    color: white;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.for-you-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.for-you-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.for-you-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.for-you-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.for-you-thumbnail {
    height: 80px;
    overflow: hidden;
}

.for-you-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.for-you-content {
    padding: 10px;
}

.for-you-title {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

/* Related Posts - Post Page */
.related-posts {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

/* Comments Section - Post Page */
.comments-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.comments-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.comments-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.comment-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-left p {
    color: #666;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #007bff;
}

/* Font Awesome Fallback - sadece Font Awesome yüklenmediğinde aktif olur */
.fontawesome-fallback .fas.fa-calendar:before {
    content: "📅";
}

.fontawesome-fallback .fas.fa-user:before {
    content: "👤";
}

.fontawesome-fallback .fas.fa-eye:before {
    content: "👁️";
}

.fontawesome-fallback .fas.fa-comments:before {
    content: "💬";
}

.fontawesome-fallback .fas.fa-home:before {
    content: "🏠";
}

.fontawesome-fallback .fas.fa-search:before {
    content: "🔍";
}

.fontawesome-fallback .fas.fa-bell:before {
    content: "🔔";
}

.fontawesome-fallback .fas.fa-bars:before {
    content: "☰";
}

.fontawesome-fallback .fab.fa-facebook-f:before {
    content: "📘";
}

.fontawesome-fallback .fab.fa-twitter:before {
    content: "🐦";
}

.fontawesome-fallback .fab.fa-whatsapp:before {
    content: "📱";
}

.fontawesome-fallback .fas.fa-chevron-right:before {
    content: "▶️";
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {

     .featured-image {
        height: 200px;
    }

      .post-image {
        height: 200px;
    }

    /* Index Page Responsive */
    .content-grid {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .for-you-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Post Page Responsive */
    .post-page .content-grid {
        flex-direction: column;
    }

    .sidebar {
        position: static;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Common Mobile Styles */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block !important;
        cursor: pointer;
        font-size: 24px;
        color: #333;
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: #f8f9fa;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
        border-radius: 0 0 8px 8px;
    }

    .nav-links.active a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        text-align: center;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }

    .nav-icons {
        gap: 20px;
    }

    .nav-icons i {
        font-size: 20px;
    }

    /* Post Page Mobile Specific */
    .post-title {
        font-size: 1.5rem;
    }

    .post-header,
    .post-body {
        padding: 20px;
    }

    .post-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        width: 100%;
    }

    .footer-left h3 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .footer-left p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        align-items: center;
    }

    .footer-right a {
        font-size: 14px;
        color: #666;
        text-decoration: none;
        transition: color 0.3s;
        white-space: nowrap;
    }

    .footer-right a:hover {
        color: #007bff;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .site-title h1 {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-header,
    .post-body {
        padding: 15px;
    }

    .footer-left h3 {
        font-size: 1.8rem;
    }

    .footer-right {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-right a {
        font-size: 13px;
        padding: 5px 0;
    }
}

/* Page Styles */
.page-content .content-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.page-content .post-content {
    flex: 2;
}

.page-content {
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.page-section {
    margin-bottom: 40px;
}

.page-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.page-section h3 {
    font-size: 1.4rem;
    color: #444;
    margin: 25px 0 15px 0;
}

.page-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.page-section ul, .page-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.page-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.team-section {
    margin-top: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #007bff;
}

.contact-item span {
    color: #555;
}

/* Responsive Page */
@media (max-width: 768px) {
    .page-content .content-grid {
        flex-direction: column;
    }

    .page-content .sidebar {
        max-width: none;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-stats {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Category Page Styles */
.category-header {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.category-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

.category-meta {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.category-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.category-meta i {
    color: #007bff;
    font-size: 16px;
}

/* Featured Excerpt */
.featured-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
}

.featured-meta i {
    font-size: 14px;
    color: #007bff;
}

/* Responsive Category */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }

    .category-description {
        font-size: 0.8rem;
    }

    .category-meta {
        flex-direction: column;
        gap: 15px;
    }

    .featured-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.8rem;
    }

    .category-header {
        padding: 20px;
    }
}
