/**
 * Custom CSS Styles
 * Drynova Kuru Temizleme Theme
 */

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128c7e;
    transform: scale(1.1);
    color: white;
}

.whatsapp-button.pulse {
    animation: pulse-animation 1s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Sticky Header Styles */
.site-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
}

.site-header.sticky.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--secondary-color);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Service Card Animation */
.service-card,
.feature-item,
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.animated,
.feature-item.animated,
.blog-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    justify-content: center;
}

.single-post-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Single Post Styles */
.single-post-section {
    padding: 0;
    background: transparent;
}

.single-post-section .container {
    max-width: 100%;
    padding: 0;
}

.single-post {
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Single Post Hero Section */
.single-post-hero {
    display: none;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g fill-opacity="0.05"><path fill="%23FFFFFF" d="M0 20L20 0L40 20L20 40z"/></g></svg>');
    opacity: 0.1;
}

.entry-header {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    font-size: 16px;
    color: white;
    opacity: 0.9;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-meta i {
    color: var(--light-accent);
}

.entry-meta a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-meta a:hover {
    color: var(--light-accent);
}

/* Post Content Section */
.post-content-section {
    background: var(--bg-light);
    padding: 100px 0 60px;
}

.post-content-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.post-content-wrapper {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
}

.post-thumbnail {
    margin: 0 auto 40px;
    border-radius: 0;
    overflow: hidden;
    width: 50%;
    max-width: 600px;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    padding: 60px 80px;
    max-width: 100%;
    margin: 0;
    text-align: center;
}

/* Metinleri sola hizala ama resimleri ortada tut */
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
    text-align: left;
}

.entry-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.entry-content h1:first-child {
    display: none;
}

/* Makale içindeki boş paragrafları ve meta etiketlerini gizle */
.entry-content p:empty {
    display: none !important;
}

.entry-content p meta,
.entry-content p title {
    display: none !important;
}

/* İlk boş paragrafları gizle */
.entry-content > p:first-child:has(meta),
.entry-content > p:first-child:has(title) {
    display: none !important;
}

/* Boş paragrafları hedefle */
.entry-content p:has(meta):only-child,
.entry-content p:has(title):only-child {
    display: none !important;
}

/* İçeriği boş olan paragrafları gizle */
.entry-content p:not(:has(*)):empty,
.entry-content p:has(meta):not(:has(text)),
.entry-content p:has(title):not(:has(text)) {
    display: none !important;
}

.entry-content h2 {
    margin: 40px 0 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.entry-content h3 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 40px;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-content img {
    max-width: 80% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px auto !important;
    display: block !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Paragraf içindeki resimler için */
.entry-content p img {
    display: block !important;
    margin: 20px auto !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Link içindeki resimler için */
.entry-content a img {
    display: block !important;
    margin: 20px auto !important;
}

/* WordPress resim hizalama sınıflarını override et */
.entry-content .alignleft,
.entry-content .alignright,
.entry-content .aligncenter,
.entry-content .alignnone,
.entry-content img[class*="align"],
.entry-content img[class*="wp-image"] {
    display: block !important;
    float: none !important;
    margin: 20px auto !important;
    text-align: center !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 80% !important;
}

.entry-content figure {
    margin: 20px auto;
    text-align: center;
}

.entry-content figure img {
    margin: 0 auto;
}

.entry-content .wp-caption {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.entry-content .wp-caption img {
    margin: 0;
}

.entry-content .wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.post-tags {
    margin-top: 30px;
    padding: 20px 80px;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    margin: 0 5px 10px 0;
    font-size: 14px;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: white;
}

.post-navigation {
    margin-top: 30px;
    padding: 30px 80px;
    border-top: 1px solid var(--border-color);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Comments Section */
.comments-area {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    margin-left: 65px;
}

.reply {
    margin-left: 65px;
    margin-top: 10px;
}

/* Widget Styles */
.widget {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 18px;
}

/* Loading Spinner for AJAX */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Accessibility */
.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

/* Footer Map Section */
.footer-map-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

/* Blog sayfasında Bizi Ziyaret Edin kısmını gizle */
.single-post .footer-map-section {
    display: none;
}

.footer-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.footer-map-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-map-info h2 i {
    color: var(--accent-color);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.info-card > i {
    font-size: 36px;
    color: var(--primary-color);
    width: 50px;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-card .highlight {
    background: #ffeaa7;
    padding: 8px 15px;
    border-radius: 20px;
    color: #d63031;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

.map-link:hover {
    color: var(--primary-color);
}

.phone-big {
    margin: 8px 0;
}

.phone-big a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.phone-big a:hover {
    color: var(--accent-color);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: #128c7e;
    transform: scale(1.05);
    color: white;
}

.footer-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Enhanced Footer Styles */
.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-desc strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Footer Statistics */
.footer-stats {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.footer-feature i {
    color: var(--accent-color);
    font-size: 16px;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.footer-badges img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-badges img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-widget h3 i {
    color: var(--accent-color);
    font-size: 20px;
}

.footer-widget ul li a i {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover i {
    transform: translateX(3px);
}

.phone-link {
    font-size: 16px;
    font-weight: 600;
}

.payment-methods {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.payment-icons {
    display: flex;
    gap: 15px;
}

.payment-icons i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: white;
    transform: scale(1.2);
}

/* Responsive for Footer Map */
@media (max-width: 992px) {
    .footer-map-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-map-container {
        height: 350px !important;
    }
}

@media (max-width: 768px) {
    .post-thumbnail {
        width: 80%;
        max-width: 400px;
    }
    .info-cards {
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card > i {
        font-size: 28px;
    }
    
    .phone-big a {
        font-size: 1.1rem;
    }
    
    .footer-map-section {
        padding: 50px 0;
    }
    
    /* Blog Single Responsive */
    .single-post-hero {
        padding: 60px 0 40px;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        font-size: 16px;
        padding: 30px;
    }
    
    .post-content-wrapper {
        margin-top: -60px;
        border-radius: 0;
    }
    
    .post-content-section {
        padding: 30px 0;
    }
    
    .breadcrumb {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .post-navigation {
        padding: 30px;
    }
    
    #respond {
        padding: 0 30px;
    }
    
    .comment-respond {
        padding: 30px;
        margin: 30px 0 0;
    }
}

/* Comment Form Styles */
.comment-respond {
    display: none !important;
}

#respond {
    display: none !important;
}

/* Yorumları tamamen gizle */
.single-post .comment-respond,
.single-post #respond,
.single-post #comments,
.single-post .comments-area {
    display: none !important;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .footer-map-section,
    .whatsapp-button,
    .back-to-top,
    .post-navigation,
    .comments-area {
        display: none;
    }
    
    .site-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
