/* Modern Advertisement System CSS */

/* Header Ads */
.header-ads-container,
.header-ad-container {
    margin: 10px auto !important;
    padding: 0 !important;
    max-width: 728px !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
    justify-items: center !important;
}

/* General ad-container centering */
.ad-container.loaded {
    justify-items: center !important;
    text-align: center !important;
}

/* Force container centering */
div[class*="header-ad"],
.ad-container.loaded[data-position="header"] {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 728px !important;
    justify-items: center !important;
}

.header-ad,
.ad-header {
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-ad:hover,
.ad-header:hover {
    transform: translateY(-2px);
}

.header-ad .ad-image,
.ad-header .ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.header-ad .ad-image:hover,
.ad-header .ad-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-ad .ad-content,
.ad-header .ad-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin: 10px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================
   POPUP ADS - AdBlocker Safe
   ==================================== */

/* Ultra Premium 2025 Popup Modal Overlay */
.content-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(1.4) brightness(0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: overlayPulse 3s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { 
        background: 
            radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
    }
    50% { 
        background: 
            radial-gradient(circle at 35% 25%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
            radial-gradient(circle at 65% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 55%),
            radial-gradient(ellipse at center, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.97) 100%);
    }
}

.content-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Ultra Premium 2025 Modal Content Wrapper */
.modal-content-wrapper {
    position: relative;
    width: 480px;
    height: auto;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(225deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.06) 50%, rgba(245, 158, 11, 0.04) 100%),
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
        #0d0d0d;
    border-radius: 28px;
    border: 1px solid;
    border-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(99, 102, 241, 0.3) 25%, 
        rgba(236, 72, 153, 0.3) 75%, 
        rgba(255, 255, 255, 0.1) 100%) 1;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: scale(0.85) translateY(40px) rotateX(8deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: modalSlideIn 1.2s ease-out forwards;
    backdrop-filter: blur(60px) saturate(1.8) brightness(1.1);
}

.content-modal-overlay.show .modal-content-wrapper {
    transform: scale(1) translateY(0) rotateX(0deg);
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.85) translateY(40px) rotateX(8deg);
        opacity: 0;
        filter: blur(30px) brightness(0.5);
    }
    30% {
        transform: scale(0.95) translateY(10px) rotateX(4deg);
        opacity: 0.6;
        filter: blur(15px) brightness(0.8);
    }
    70% {
        transform: scale(1.02) translateY(-3px) rotateX(-1deg);
        opacity: 0.95;
        filter: blur(2px) brightness(1.1);
    }
    100% {
        transform: scale(1) translateY(0) rotateX(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

/* Ultra Premium 2025 Close Button */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(30px) saturate(1.5);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 300;
}

.modal-close-btn:hover {
    background: 
        linear-gradient(135deg, rgba(255, 59, 48, 0.8) 0%, rgba(255, 59, 48, 0.6) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-color: rgba(255, 59, 48, 0.6);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 8px 24px rgba(255, 59, 48, 0.4),
        0 4px 12px rgba(255, 59, 48, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Content Inner */
.modal-content-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

/* Content Link */
.content-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 24px;
    overflow: hidden;
}

.content-link:hover {
    transform: scale(1.02);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Content Image */
.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.content-link:hover .content-image {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.1) saturate(1.2);
}

/* Ultra Premium 2025 Content Body */
.content-body {
    padding: 64px 48px;
    color: #ffffff;
    text-align: center;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: 
        linear-gradient(135deg, #6366f1 0%, #8b5cf6 20%, #ec4899 40%, #f59e0b 60%, #10b981 80%, #06b6d4 100%),
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(99, 102, 241, 0.3);
}

.content-body::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    right: -100%;
    bottom: -100%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            rgba(99, 102, 241, 0.15) 0deg, 
            rgba(139, 92, 246, 0.12) 60deg,
            rgba(236, 72, 153, 0.15) 120deg, 
            rgba(245, 158, 11, 0.12) 180deg,
            rgba(16, 185, 129, 0.15) 240deg,
            rgba(6, 182, 212, 0.12) 300deg,
            rgba(99, 102, 241, 0.15) 360deg);
    animation: rotateGradient 25s linear infinite;
    z-index: -2;
}

/* Additional animated layer */
.content-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 60px 60px, 100px 100px, 120px 120px;
    animation: floatingParticles 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-body h1,
.content-body h2,
.content-body h3 {
    margin: 0 0 32px 0;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.95) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.95) 75%,
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.content-body p {
    margin: 0 0 28px 0;
    line-height: 1.6;
    opacity: 0.92;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 500;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.01em;
}

/* Ultra Premium Hover Effect */
.content-link:hover .content-body {
    transform: scale(1.02) translateY(-2px);
    background: 
        linear-gradient(135deg, #6366f1 0%, #8b5cf6 15%, #ec4899 30%, #f59e0b 45%, #10b981 60%, #06b6d4 75%, #8b5cf6 90%, #6366f1 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    box-shadow: 
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 3px 0 0 rgba(255, 255, 255, 0.15),
        inset -3px 0 0 rgba(0, 0, 0, 0.15),
        0 16px 64px rgba(99, 102, 241, 0.4),
        0 8px 32px rgba(236, 72, 153, 0.3),
        0 4px 16px rgba(245, 158, 11, 0.2);
}

/* ULTRA AGGRESSIVE button removal - content is clickable */
.content-body .btn,
.content-body button,
.content-body [class*="btn"],
.content-body a[onclick],
.content-body a[target="_blank"],
.content-body a[rel],
.content-body a[href*="example.com"],
.content-body a[class*="primary"],
.content-body a[style*="cursor: pointer"],
.content-body a[style*="border-radius"],
.content-body a[style*="padding"],
.content-body a[style*="background"],
.content-body div[style*="cursor: pointer"],
.content-body div[style*="border-radius: 50px"],
.content-body div[style*="border-radius: 25px"],
.content-body *[onclick],
.content-body *[data-action],
.content-body *[data-click] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

/* Hide by text content - more specific */
.content-body a:contains("Devam Et"),
.content-body a:contains("Hemen Katıl"),
.content-body a:contains("Katıl"),
.content-body a:contains("Başla"),
.content-body a:contains("Tıkla"),
.content-body a:contains("Continue"),
.content-body a:contains("Join"),
.content-body a:contains("Start"),
.content-body a:contains("Click") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Add floating particles effect */
.content-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    animation: floatingParticles 20s linear infinite;
    pointer-events: none;
}

@keyframes floatingParticles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Ultra Premium 2025 Responsive Design */
@media (max-width: 768px) {
    .modal-content-wrapper {
        width: 92vw;
        max-width: 400px;
        border-radius: 24px;
    }
    
    .content-body {
        padding: 56px 40px;
        min-height: 460px;
    }
    
    .modal-close-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
        border-radius: 18px;
        font-size: 16px;
    }
    
    .content-body h1,
    .content-body h2,
    .content-body h3 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        margin-bottom: 24px;
    }
    
    .content-body p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .modal-content-wrapper {
        width: 94vw;
        max-width: 360px;
        border-radius: 20px;
    }
    
    .content-body {
        padding: 48px 32px;
        min-height: 400px;
        border-radius: 20px;
    }
    
    .modal-close-btn {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        border-radius: 16px;
        font-size: 14px;
    }
    
    .content-body h1,
    .content-body h2,
    .content-body h3 {
        font-size: clamp(1.6rem, 8vw, 2rem);
        margin-bottom: 20px;
    }
    
    .content-body p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 20px;
    }
}

/* ====================================
   CATEGORY SIDEBAR ADS
   ==================================== */

/* Category Sidebar Ads Container */
.category-sidebar-ads {
    margin: 0 0 1.5rem 0; /* Üstte margin yok, altta var */
    padding: 0;
}

/* İlk reklam container'ı için özel stil */
aside > .category-sidebar-ads:first-child {
    margin-top: 0;
}

.sidebar-ads-header {
    margin-bottom: 1rem;
}

.sidebar-ads-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Individual Category Sidebar Ad */
.category-sidebar-ad {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
}

.category-sidebar-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-sidebar-ad .ad-container {
    margin: 0;
    border-radius: 0;
    background: transparent;
}

/* Category Ad Content */
.category-ad-content {
    padding: 0.75rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hide any ellipsis or overflow indicators */
.category-sidebar-ad::after,
.category-ad-content::after,
.category-sidebar-ads::after,
aside::after {
    display: none !important;
    content: none !important;
}

.category-sidebar-ad,
.category-sidebar-ads,
.category-sidebar-ad *,
aside .category-sidebar-ads * {
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Remove any pseudo elements that might show "..." */
.category-sidebar-ad::before,
.category-sidebar-ad::after,
.category-sidebar-ads::before,
.category-sidebar-ads::after {
    content: none !important;
    display: none !important;
}

/* Ensure no truncation */
.category-sidebar-ad,
.category-sidebar-ads {
    white-space: normal !important;
    text-overflow: unset !important;
    overflow: visible !important;
}

.category-ad-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: -1;
}

/* Category Ad Image */
.category-ad-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.category-sidebar-ad:hover .category-ad-image {
    transform: scale(1.05);
}

/* Category Ad Link */
.category-ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-ad-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-sidebar-ads {
        margin: 1rem 0;
    }
    
    .category-sidebar-ad {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .category-ad-content {
        padding: 0.75rem;
        min-height: 150px;
    }
    
    .sidebar-ads-title {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .category-sidebar-ads {
        margin: 0.75rem 0;
    }
    
    .category-ad-content {
        padding: 0.5rem;
        min-height: 120px;
    }
    
    .category-ad-image {
        max-height: 180px;
    }
}
.ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Ad Links */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ad-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Ad Images */
.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.ad-link:hover .ad-image {
    transform: scale(1.02);
}

/* Banner Ads */
.ad-banner {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ad-banner .ad-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
}

.ad-banner .ad-content {
    padding: 1rem;
    color: var(--text);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Ad Section */
.ad-section.ad-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.ad-section .ad-container {
    margin: 0;
}

/* Sidebar Ads */
.sidebar-ads {
    position: sticky;
    top: 2rem;
    margin: 2rem 0;
}

.ad-sidebar {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.ad-sidebar .ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.ad-sidebar .ad-content {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ad-sidebar .ad-label {
    top: 1rem;
    right: 1rem;
}

/* Footer Ads */
.footer-ads-container,
.footer-ad-container {
    margin: 15px auto !important;
    padding: 0 !important;
    max-width: 728px !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Force footer container centering */
div[class*="footer-ad"],
.footer-placements-wrapper,
.footer-placements-container,
.placement-footer,
.ad-container.loaded[data-position="footer"] {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 728px !important;
    justify-items: center !important;
}

/* Footer Placement Styles */
.placement-footer {
    text-align: center !important;
    margin: 15px auto !important;
}

.placement-footer .content-image {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.ad-footer .ad-content {
    color: var(--text);
    margin-top: 1rem;
}

.ad-footer .ad-label {
    position: static;
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

/* Minimal Premium Popup - Apple Style */
.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(1.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: cleanFadeIn 0.4s ease-out forwards;
}

@keyframes cleanFadeIn {
    0% { 
        opacity: 0;
    }
    100% { 
        opacity: 1;
    }
}

.ad-popup {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 20px;
    width: 50vw;
    min-width: 500px;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 0 0 0.5px rgba(255, 255, 255, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.92);
    animation: cleanSlideIn 0.5s ease-out forwards;
}

@keyframes cleanSlideIn {
    0% {
        transform: scale(0.92) translateY(30px);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: scale(1.01) translateY(-5px);
        opacity: 0.9;
        filter: blur(2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.ad-popup:hover {
    transform: scale(1.015);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.35),
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 0.5px rgba(255, 255, 255, 0.4);
}

.ad-popup-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 32px 16px 32px;
    border-bottom: none;
}

.ad-popup-header .ad-label {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
}

.ad-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.ad-popup-close:hover {
    background: rgba(255, 59, 48, 0.9);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 6px 20px rgba(255, 59, 48, 0.4),
        0 3px 10px rgba(255, 59, 48, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ad-popup-content {
    padding: 0 32px 32px 32px;
    text-align: center;
}

.ad-popup-content .ad-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ad-popup-content .ad-image:hover {
    transform: scale(1.015);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.ad-popup-content .ad-content {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
}

.ad-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-ad,
.ad-footer {
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-ad:hover,
.ad-footer:hover {
    transform: translateY(-2px);
}

.footer-ad .ad-image,
.ad-footer .ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-ad .ad-image:hover,
.ad-footer .ad-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-ad .ad-content,
.ad-footer .ad-content {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ad Loading States */
.ad-container.loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ad Blocker Detection */
.ad-blocker-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    display: none;
}

.ad-blocker-notice.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-section.ad-header {
        padding: 1rem 0;
        margin: 1rem 0;
    }
    
    .ad-banner .ad-image {
        height: 80px;
    }
    
    .ad-sidebar .ad-image {
        height: 150px;
    }
    
    .ad-popup {
        width: 85vw;
        min-width: 320px;
        max-width: 500px;
    }
    
    .ad-popup-header {
        padding: 20px 24px 12px 24px;
    }
    
    .ad-popup-close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        border-radius: 15px;
        font-size: 16px;
    }
    
    .ad-popup-content {
        padding: 0 24px 24px 24px;
    }
    
    .ad-popup-content .ad-image {
        max-height: 300px;
    }
    
    .sidebar-ads {
        position: static;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .ad-banner .ad-image {
        height: 60px;
    }
    
    .ad-sidebar {
        padding: 0.75rem;
    }
    
    .ad-sidebar .ad-image {
        height: 120px;
    }
    
    .ad-footer {
        padding: 1rem;
    }
    
    .ad-popup {
        width: 92vw;
        min-width: 280px;
        max-width: 380px;
    }
    
    .ad-popup-header {
        padding: 18px 20px 10px 20px;
    }
    
    .ad-popup-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        font-size: 15px;
    }
    
    .ad-popup-content {
        padding: 0 20px 20px 20px;
    }
    
    .ad-popup-content .ad-image {
        max-height: 250px;
        border-radius: 12px;
    }
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .ad-container {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .ad-label {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .ad-popup-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Skyscraper Ads (160x600) */
.skyscraper-ads-container {
    position: relative;
    pointer-events: none; /* Allow clicks to pass through to content */
    z-index: 1;
}

.skyscraper-ad {
    position: fixed !important;
    top: 100px !important;
    width: 160px !important;
    height: 600px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    /* Use transform3d for hardware acceleration */
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
}

.skyscraper-ad--left {
    left: 20px !important;
}

.skyscraper-ad--right {
    right: 20px !important;
}

/* Force visibility and positioning */
.skyscraper-ad {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 999 !important;
    position: fixed !important;
}

/* Force ad-container visibility */
.skyscraper-ad .ad-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Remove loading state */
.skyscraper-ad .ad-container.loading {
    display: block !important;
}

/* Skyscraper Ad Content */
.skyscraper-ad .ad-container {
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Empty skyscraper ad placeholder */
.skyscraper-ad .ad-container:empty::before {
    content: "160×600\AReklam Alanı";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
    white-space: pre-line;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px dashed rgba(255,255,255,0.1);
}

.skyscraper-ad .ad-skyscraper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.skyscraper-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.skyscraper-ad .ad-content {
    padding: 1rem;
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skyscraper-ad .ad-label {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Skyscraper Ad Hover Effects */
.skyscraper-ad:hover .ad-container {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.skyscraper-ad:hover .ad-image {
    transform: scale(1.05);
}

/* Skyscraper Ad Close Button */
.skyscraper-ad .ad-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 20;
    transition: all 0.3s ease;
}

.skyscraper-ad .ad-close:hover {
    background: rgba(255, 107, 107, 0.8);
    transform: scale(1.1);
}

/* Responsive Design for Skyscraper Ads */
@media (max-width: 1400px) {
    .skyscraper-ad--left {
        left: 10px;
    }
    
    .skyscraper-ad--right {
        right: 10px;
    }
}

@media (max-width: 1200px) {
    .skyscraper-ad {
        width: 120px;
        height: 480px;
    }
    
    .skyscraper-ad--left {
        left: 5px;
    }
    
    .skyscraper-ad--right {
        right: 5px;
    }
/* Hide skyscraper ads on tablets and mobile */
@media (max-width: 1024px) {
    .skyscraper-ads-container,
    .skyscraper-ad {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    .ad-container,
    .ad-section,
    .sidebar-ads,
    .ad-popup-overlay,
    .skyscraper-ad {
        display: none !important;
    }
}
}
