/**
 * Ek Stiller - Responsive ve İleri Düzey Özellikler
 * 
 * @package Haber
 */

/* ===================================
   Content Wrapper Layout
   =================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

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

.main-content {
    min-width: 0;
}

/* ===================================
   Pagination Styles
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination .nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .dots {
    border: none;
    background: none;
}

/* ===================================
   Archive Header
   =================================== */
.archive-header {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.archive-title {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.archive-description {
    color: #666;
    line-height: 1.8;
}

/* Category Header */
.category-header,
.tag-header,
.author-profile {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

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

.category-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-description {
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 20px;
}

.category-meta,
.tag-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
}

/* Tag Header */
.tag-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.tag-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tag-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tag-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Author Profile */
.author-profile {
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-large img {
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.author-name {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.author-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
}

.author-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .author-profile,
    .tag-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title,
    .tag-title,
    .author-name {
        font-size: 2rem;
    }
}

/* ===================================
   Single Post Styles
   =================================== */
.single-post {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.entry-header {
    margin-bottom: 30px;
}

.entry-category a {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-thumbnail {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-caption {
    padding: 10px;
    background: var(--light-bg);
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.entry-content img {
    border-radius: 8px;
    margin: 25px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background: var(--light-bg);
    margin: 25px 0;
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* ===================================
   Entry Footer
   =================================== */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.entry-tags i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.entry-tags .tag {
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.entry-tags .tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===================================
   Social Share Buttons
   =================================== */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.share-btn.pulse {
    animation: pulse 0.6s ease;
}

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

/* ===================================
   Author Box
   =================================== */
.author-box {
    display: flex;
    gap: 20px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h3 {
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   Related Posts
   =================================== */
.related-posts {
    margin-top: 50px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* ===================================
   Comments
   =================================== */
.comments-area {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    font-size: 1.1rem;
    margin-right: 10px;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-text {
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-reply-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.comment-awaiting-moderation {
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 5px;
    color: #856404;
    font-size: 0.9rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    margin-bottom: 20px;
}

.comment-form {
    display: grid;
    gap: 15px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: var(--hover-color);
}

/* ===================================
   Sidebar Widgets
   =================================== */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.popular-post-item,
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:first-child,
.recent-post-item:first-child {
    padding-top: 0;
}

.popular-post-item:last-child,
.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-thumb,
.recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.popular-post-thumb img,
.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4,
.recent-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-content h4 a,
.recent-post-content h4 a {
    color: var(--secondary-color);
}

.popular-post-date,
.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem !important;
    transition: all 0.3s ease;
}

.tag-cloud-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===================================
   Search Form
   =================================== */
.search-form {
    display: flex;
    gap: 5px;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-field.error {
    border-color: var(--primary-color);
}

.search-submit {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--hover-color);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===================================
   404 Error Page
   =================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-number {
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background: var(--hover-color);
    color: var(--white);
}

.error-suggestions {
    margin-top: 60px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ===================================
   Scroll to Top Button
   =================================== */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background: var(--hover-color);
    transform: translateY(-5px);
}

/* ===================================
   Lightbox
   =================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* ===================================
   Cookie Notice
   =================================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-notice .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
}

.cookie-accept {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-notice a {
    color: var(--white);
    text-decoration: underline;
    white-space: nowrap;
}

/* ===================================
   Mobile Menu Styles
   =================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    #primary-menu {
        display: none;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        padding: 15px 0;
    }
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    color: #666;
}

/* ===================================
   Read More Button
   =================================== */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* ===================================
   Loading Animation
   =================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ===================================
   Sticky Header
   =================================== */
.site-header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.site-header.sticky .header-top {
    display: none;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer,
    .social-share,
    .comments-area,
    #scroll-to-top,
    .cookie-notice {
        display: none !important;
    }
    
    .single-post {
        box-shadow: none;
    }
}

