/* Additional custom styles for Halibul website */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Text selection color */
::selection {
    background-color: #667eea;
    color: white;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading animation for images */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

/* Hamburger menu animation */
#hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    transition: all 0.3s ease;
}

/* Newsletter form focus effect */
.newsletter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Article reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Sticky sidebar styles */
.lg\\:sticky {
    position: sticky;
}

.lg\\:top-20 {
    top: 5rem;
}

.lg\\:self-start {
    align-self: start;
}

/* Load more button styles */
#load-more-btn {
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#load-more-btn:active {
    transform: translateY(0);
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Line clamp utilities for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Load more message animations */
.load-more-message {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced article card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category badge styles */
.bg-blue-100.text-blue-800 {
    transition: all 0.2s ease;
}

.bg-blue-100.text-blue-800:hover {
    background-color: #dbeafe !important;
    transform: scale(1.05);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* AdSense Ad Styles */
.adsbygoogle {
    display: block;
    text-align: center;
    margin: 2rem auto;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    min-height: 90px;
}

.adsbygoogle[data-ad-status="unfilled"] {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adsbygoogle[data-ad-status="unfilled"]::before {
    content: "Reklam Alanı";
    color: #6c757d;
}

/* Ad container styles */
.ad-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.ad-container-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-container-body {
    padding: 1rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive ad styles */
@media (max-width: 768px) {
    .adsbygoogle {
        margin: 1rem auto;
        padding: 0.5rem;
    }
    
    .ad-container {
        margin: 1rem 0;
    }
}

/* AdSense loading animation */
.adsbygoogle[data-ad-status="loading"] {
    position: relative;
    overflow: hidden;
}

.adsbygoogle[data-ad-status="loading"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* AdSense error handling */
.adsbygoogle[data-ad-status="error"] {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

.adsbygoogle[data-ad-status="error"]::before {
    content: "Reklam yüklenemedi";
    color: #c53030;
}

/* Teklif Formu Stilleri */
#quote-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#quote-form input,
#quote-form select,
#quote-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#quote-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.quote-message {
    animation: slideInDown 0.3s ease-out;
}

/* Fiyatlandırma Kartları */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    position: relative;
    z-index: 10;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 16px;
    z-index: -1;
}

/* Hizmet Kartları */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Responsive tasarım için ek stiller */
@media (max-width: 768px) {
    #quote-form {
        padding: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular::before {
        display: none;
    }
}
