/**
 * Ad Manager Frontend Styles
 * Google AdSense benzeri profesyonel reklam görünümü
 */

/* Ad Zone Container */
.ad-zone {
    margin: 0px 0;
    padding: 0;
    width: 100%;
}

.ad-zone-biolink {
    margin: 4px 0;
}

.ad-container {
    margin-bottom: 6px;
    position: relative;
}

/* Ad Label (Google AdSense tarzı) */
.ad-label {
    font-size: 10px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Banner Ads */
.ad-banner {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    background: #fff;
    transition: all 0.2s ease;
}

.ad-banner:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Text Ads - Google AdSense Style */
.ad-text {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

.ad-text::before {
    content: 'Reklam';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 9px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.ad-text:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

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

.ad-text-headline {
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.ad-text-link:hover .ad-text-headline {
    text-decoration: underline;
}

.ad-text-description {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ad-text-url {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ad-text-url::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%235f6368"><path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z"/><path d="M7 5h2v6H7zm0-2h2v1.5H7z"/></svg>') center/contain no-repeat;
}

.ad-text-cta {
   display: inline-block;
    padding: 5px;
    background: #1a73e8;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}


.ad-text-link:hover .ad-text-cta {
    background: #1557b0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .ad-text {
        background: #202124;
        border-color: #3c4043;
    }
    
    .ad-text::before {
        background: #303134;
        color: #9aa0a6;
    }
    
    .ad-text-headline {
        color: #8ab4f8;
    }
    
    .ad-text-description,
    .ad-text-url {
        color: #bdc1c6;
    }
    
    .ad-text:hover {
        border-color: #5f6368;
        box-shadow: 0 1px 6px rgba(0,0,0,0.3);
    }
}

/* Video Ads */
.ad-video {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    background: #000;
}

.ad-video iframe,
.ad-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* HTML Ads */
.ad-html {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    background: #fff;
}

/* Biolink tema uyumlu stil */
.biolink-container .ad-zone-biolink {
    max-width: 100%;
    margin: 20px auto;
}

.biolink-container .ad-text {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .ad-zone {
        margin: 16px 0;
    }
    
    .ad-text {
        padding: 14px;
    }
    
    .ad-text-headline {
        font-size: 16px;
    }
    
    .ad-text-description {
        font-size: 13px;
    }
    
    .ad-text-cta {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ad-zone {
        margin: 12px 0;
    }
    
    .ad-text {
        padding: 12px;
    }
    
    .ad-text::before {
        top: 6px;
        right: 8px;
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .ad-text-headline {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .ad-text-description {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .ad-text-cta {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
    }
}

/* Loading skeleton */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 150px;
}

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

/* Fade-in animation */
.ad-container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
