/**
 * Crosslink Digital - Website Check-Up Landing Page
 * Custom CSS Styles
 * 
 * Not: Tailwind CSS kullanıyoruz, bu dosya sadece Tailwind'in kapsamadığı
 * özel animasyonlar ve ince ayarlar için kullanılır.
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00CC61;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00b355;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 204, 97, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 204, 97, 0);
    }
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00CC61;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Toast notification slide-in animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #00CC61;
    outline-offset: 2px;
}

/* Custom select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #00CC61 0%, #00b355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-accent {
        background-color: #00b355;
    }
    
    .text-accent {
        color: #00b355;
    }
    
    button, a {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (opsiyonel - gelecekte eklenebilir) */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
}

/* Speedometer Gauge Chart Styles */
.gauge-container {
    position: relative;
    width: 200px;
    height: 140px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.gauge-background {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gauge-arc {
    fill: none;
    stroke-width: 20;
    stroke-linecap: round;
}

.gauge-arc-bg {
    stroke: #e5e7eb;
}

.gauge-arc-fill {
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-needle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 4px;
    height: 80px;
    background: linear-gradient(to top, #262626, #666);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gauge-needle::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #262626;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gauge-value {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    color: #262626;
}

.gauge-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.gauge-markers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gauge-marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background: #9ca3af;
    transform-origin: center bottom;
}

/* Gauge animation */
@keyframes gaugeLoad {
    from {
        stroke-dashoffset: 314;
    }
}

.gauge-arc-fill {
    animation: gaugeLoad 1.5s ease-out;
}
