/* 
 * Yuzme.org - Custom CSS
 * Tailwind CSS ile birlikte kullanılan özel stiller
 */

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-swim-blue font-medium transition-colors relative;
}

.nav-link.active {
    @apply text-swim-blue;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0EA5E9;
}

.mobile-nav-link {
    @apply text-gray-700 hover:text-swim-blue font-medium py-2 transition-colors;
}

/* Hero Section Animations */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: #F9FAFB;
}

/* Card Hover Effects */
.service-card {
    @apply bg-white rounded-lg shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2;
}

.blog-card {
    @apply bg-white rounded-lg shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1;
}

/* Button Animations */
.btn-primary {
    @apply bg-swim-blue text-white px-6 py-3 rounded-lg hover:bg-swim-dark transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply border-2 border-swim-blue text-swim-blue px-6 py-3 rounded-lg hover:bg-swim-blue hover:text-white transition-all duration-300;
}

/* Statistics Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Loading Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #0EA5E9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0369A1;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-swim-blue focus:border-swim-blue outline-none transition-all;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-swim-blue focus:border-swim-blue outline-none transition-all resize-vertical;
    min-height: 120px;
}

/* Success/Error Messages */
.alert-success {
    @apply bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded-lg;
}

.alert-error {
    @apply bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded-lg;
}

/* Breadcrumb */
.breadcrumb {
    @apply text-sm text-gray-600 mb-4;
}

.breadcrumb a {
    @apply text-swim-blue hover:text-swim-dark transition-colors;
}

/* Blog Post Styles */
.blog-content h2 {
    @apply text-2xl font-bold text-gray-800 mt-6 mb-4;
}

.blog-content h3 {
    @apply text-xl font-bold text-gray-800 mt-5 mb-3;
}

.blog-content p {
    @apply text-gray-700 leading-relaxed mb-4;
}

.blog-content ul, .blog-content ol {
    @apply text-gray-700 mb-4 ml-6;
}

.blog-content li {
    @apply mb-2;
}

.blog-content blockquote {
    @apply border-l-4 border-swim-blue pl-4 italic text-gray-600 my-4;
}

/* Responsive Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animation Delays for Staggered Effects */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-400 {
    animation-delay: 400ms;
}

/* Media Queries for Extra Responsiveness */
@media (max-width: 640px) {
    .hero-wave svg {
        height: 40px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
}

.hero-slider .slide {
    display: none;
}

.hero-slider .slide.active {
    display: flex;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white !important;
    transform: scale(1.2);
}

/* Slider Animation */
.slide-fade-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
