/* İçerik Sayfası Stilleri */

/* Post sayfası için main-content düzenlemesi */
.post-page .main-content {
    align-items: start;
}

.post-content {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    padding-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 0;
    height: fit-content;
    min-height: auto;
}


/* Snippet Badge */
.snippet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* Post Tags */
.post-tags {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.tags-list {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tag-link { color: #666 !important; text-decoration: none !important; }
.tag-link:hover { border-bottom: 2px dashed #ffd700 !important; }

/* Kod Blokları */
.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.code-header {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.copy-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #28a745;
}

.code-content {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.snippet-badge i {
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1.5rem;
}

.post-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    color: #666;
}

.post-meta a {
    color: #3498db;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.snippet-question {
    margin-bottom: 1.5rem;
}

.snippet-question h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.snippet-question p {
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #fff;
}

.snippet-answer h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.answer-content {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.7;
    border-left: 4px solid #4CAF50;
}

/* Post Body */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.5rem !important;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
    color: #3498db;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.post-body code {
    background: #f1f2f6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-body th,
.post-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.post-body th {
    background: #3498db;
    color: #fff;
    font-weight: 600;
}

.post-body tr:hover {
    background: #f8f9fa;
}

/* Post Tags */
.post-tags {
    margin-top: 0.5rem !important;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.post-tags h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

 


/* Social Share */
.social-share {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.social-share h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    color: #fff;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}



/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
    }
    
    .post-content {
        padding: 1rem;
        order: 1;
    }
    
    .sidebar {
        order: 2;
    }
    
    
    .breadcrumb {
        display: none;
    }
    
    .post-meta {
        display: none;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    
    .post-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    
    .tags-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
}

/* Ping Button Styles */
.post-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ping-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    white-space: nowrap;
}

.ping-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.ping-btn:active {
    transform: translateY(0);
}

.ping-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ping-btn i {
    font-size: 1rem;
}

/* Ping Modal Styles */
.ping-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.ping-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ping-modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ping-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ping-close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.ping-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ping-modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.ping-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #28a745;
}

.ping-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #28a745;
    font-size: 1.1rem;
}

.ping-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.ping-stat {
    text-align: center;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ping-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    display: block;
}

.ping-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.ping-results {
    max-height: 300px;
    overflow-y: auto;
}

.ping-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.ping-result-item:hover {
    background-color: #f8f9fa;
}

.ping-result-item:last-child {
    border-bottom: none;
}

.ping-service-name {
    font-weight: 500;
    color: #495057;
}

.ping-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ping-status.success {
    color: #28a745;
}

.ping-status.error {
    color: #dc3545;
}

.ping-status i {
    font-size: 0.9rem;
}

.ping-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.ping-loading i {
    font-size: 2rem;
    color: #28a745;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .post-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .ping-btn {
        align-self: flex-end;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .ping-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .ping-modal-header {
        padding: 1rem;
    }
    
    .ping-modal-body {
        padding: 1rem;
    }
    
    .ping-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .ping-stat {
        padding: 0.6rem;
    }
    
    .ping-stat-number {
        font-size: 1.2rem;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    /* Etiketleri mobilde gizle */
    .tags-list {
        display: none;
    }
}

/* Yazar Bio */
.author-bio {
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.author-info {
    flex: 1;
}

.author-header {
    margin-bottom: 0.5rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.verified-badge {
    color: #1da1f2;
    font-size: 0.9rem;
}


.author-bio-text {
    color: #34495e;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.6rem;
    padding: 0;
    margin: 0;
}

.social-link:hover {
    color: #fff;
    text-decoration: none;
}

.social-link.website:hover {
    background: #17a2b8;
}

.social-link.email:hover {
    background: #dc3545;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.github:hover {
    background: #333;
}

/* Verified Icon Styles */
.author-name-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.verified-icon-inline {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.verified-icon-bio {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Yazar Bio Mobil */
@media (max-width: 768px) {
    .author-bio {
        display: none;
    }
}
