/* Blog Post CTA Buttons Pro - 5 Tasarım Stili */

/* ==========================================================================
   TEMEL STILLER
   ========================================================================== */

.blog-post-cta-container {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.blog-post-cta-container * {
    box-sizing: border-box;
}

.blog-post-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.blog-post-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #007cba;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

.blog-post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    color: white !important;
}

.blog-post-cta-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.cta-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

/* İkonlar */
.cta-phone::before { content: "📞"; }
.cta-whatsapp::before { content: "💬"; }
.cta-email::before { content: "📧"; }
.cta-message::before { content: "💬"; }
.cta-location::before { content: "📍"; }
.cta-calendar::before { content: "📅"; }
.cta-download::before { content: "📥"; }
.cta-info::before { content: "ℹ️"; }

.cta-title {
    text-align: center;
    margin-bottom: 20px;
}

.cta-title h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.cta-title p {
    margin: 0;
    font-size: 16px;
    color: #666;
    opacity: 0.9;
}

.cta-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.cta-close-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* ==========================================================================
   TASARIM 1: GRADIENT MODERN
   ========================================================================== */

.cta-design-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.cta-design-gradient::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" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-design-gradient .cta-title h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-design-gradient .cta-title p {
    color: rgba(255,255,255,0.9);
}

.cta-design-gradient .blog-post-cta-btn {
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cta-design-gradient .blog-post-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-design-gradient .blog-post-cta-btn:hover::before {
    left: 100%;
}

.cta-design-gradient .blog-post-cta-btn:hover {
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px) scale(1.05);
}

/* ==========================================================================
   TASARIM 2: MINIMAL TEMIZ
   ========================================================================== */

.cta-design-minimal {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cta-design-minimal .cta-title h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.cta-design-minimal .cta-title p {
    color: #7f8c8d;
    font-size: 14px;
}

.cta-design-minimal .blog-post-cta-btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid transparent;
    text-transform: none;
    letter-spacing: normal;
}

.cta-design-minimal .blog-post-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-design-minimal .blog-post-cta-btn-1 {
    background: #3498db;
    border-color: #2980b9;
}

.cta-design-minimal .blog-post-cta-btn-2 {
    background: #2ecc71;
    border-color: #27ae60;
}

.cta-design-minimal .blog-post-cta-btn-3 {
    background: #e74c3c;
    border-color: #c0392b;
}

/* ==========================================================================
   TASARIM 3: KART TASARIM
   ========================================================================== */

.cta-design-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-design-card .cta-title {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.cta-design-card .cta-title h3 {
    color: #495057;
    font-size: 26px;
    margin-bottom: 10px;
}

.cta-design-card .cta-title p {
    color: #6c757d;
    font-size: 16px;
}

.cta-design-card .blog-post-cta-btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 28px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

.cta-design-card .blog-post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ==========================================================================
   TASARIM 4: YÜZEN BUTONLAR
   ========================================================================== */

.cta-design-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 300px;
}

.cta-design-floating .blog-post-cta-buttons {
    flex-direction: column;
    gap: 8px;
}

.cta-design-floating .blog-post-cta-btn {
    border-radius: 25px;
    font-size: 14px;
    padding: 10px 20px;
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
}

.cta-design-floating .blog-post-cta-btn:hover {
    transform: translateX(-3px);
    box-shadow: -4px 4px 12px rgba(0,0,0,0.2);
}

.cta-design-floating .cta-close-btn {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    font-size: 14px;
}

/* ==========================================================================
   TASARIM 5: BANNER STIL
   ========================================================================== */

.cta-design-banner {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px -20px;
}

.cta-design-banner::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" viewBox="0 0 100 100"><polygon points="0,0 100,0 80,100 0,100" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.cta-design-banner .cta-title h3 {
    color: white;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.cta-design-banner .cta-title p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
}

.cta-design-banner .blog-post-cta-buttons {
    margin-top: 25px;
}

.cta-design-banner .blog-post-cta-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white !important;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.cta-design-banner .blog-post-cta-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-3px) scale(1.05);
}

/* ==========================================================================
   ANIMASYONLAR
   ========================================================================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-15px);
    }
    70% {
        transform: translateY(-7px);
    }
    90% {
        transform: translateY(-3px);
    }
}

/* Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animasyon sınıfları */
.blog-post-cta-container[data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out;
}

.blog-post-cta-container[data-animation="fadeInDown"] {
    animation: fadeInDown 0.8s ease-out;
}

.blog-post-cta-container[data-animation="slideInLeft"] {
    animation: slideInLeft 0.8s ease-out;
}

.blog-post-cta-container[data-animation="slideInRight"] {
    animation: slideInRight 0.8s ease-out;
}

.blog-post-cta-container[data-animation="zoomIn"] {
    animation: zoomIn 0.6s ease-out;
}

.blog-post-cta-container[data-animation="bounce"] {
    animation: bounce 1s ease-out;
}

.blog-post-cta-container[data-animation="pulse"] .blog-post-cta-btn {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   RESPONSIVE TASARIM
   ========================================================================== */

@media (max-width: 768px) {
    .blog-post-cta-container {
        margin: 20px 0;
    }
    
    .cta-design-gradient,
    .cta-design-minimal,
    .cta-design-card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .cta-design-banner {
        margin: 20px -10px;
        padding: 25px 15px;
    }
    
    .cta-design-floating {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        border-radius: 15px;
    }
    
    .blog-post-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .blog-post-cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .cta-design-floating .blog-post-cta-btn {
        max-width: none;
    }
    
    .cta-title h3 {
        font-size: 20px !important;
    }
    
    .cta-title p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .blog-post-cta-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .cta-design-gradient,
    .cta-design-minimal,
    .cta-design-card {
        padding: 15px 10px;
    }
    
    .cta-design-banner {
        padding: 20px 10px;
    }
}

/* ==========================================================================
   DARK MODE DESTEĞI
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .cta-design-minimal {
        background: #2c3e50;
        border-color: #34495e;
        color: white;
    }
    
    .cta-design-minimal .cta-title h3 {
        color: #ecf0f1;
    }
    
    .cta-design-minimal .cta-title p {
        color: #bdc3c7;
    }
    
    .cta-design-card {
        background: linear-gradient(145deg, #2c3e50, #34495e);
        border-color: #34495e;
    }
    
    .cta-design-card .cta-title h3 {
        color: #ecf0f1;
    }
    
    .cta-design-card .cta-title p {
        color: #bdc3c7;
    }
    
    .cta-design-floating {
        background: rgba(44, 62, 80, 0.95);
        border-color: #34495e;
    }
}

/* ==========================================================================
   YÜKSEK KONTRAST DESTEĞI
   ========================================================================== */

@media (prefers-contrast: high) {
    .blog-post-cta-container {
        border: 2px solid #000;
    }
    
    .blog-post-cta-btn {
        border: 2px solid #000 !important;
        background-color: #000 !important;
        color: #fff !important;
    }
    
    .blog-post-cta-btn:hover {
        background-color: #fff !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   HAREKET AZALTMA DESTEĞI
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .blog-post-cta-container,
    .blog-post-cta-btn {
        animation: none !important;
        transition: none !important;
    }
    
    .blog-post-cta-btn:hover {
        transform: none !important;
    }
    
    .blog-post-cta-btn::before {
        display: none !important;
    }
}

/* ==========================================================================
   ÖZEL DURUMLAR
   ========================================================================== */

/* Kapatılmış CTA */
.blog-post-cta-container.cta-closed {
    display: none;
}

/* Yükleniyor durumu */
.blog-post-cta-container.cta-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hata durumu */
.blog-post-cta-container.cta-error {
    border: 2px solid #e74c3c;
    background: #fdf2f2;
}

/* Başarı durumu */
.blog-post-cta-container.cta-success {
    border: 2px solid #27ae60;
    background: #f0fff4;
} 