/**
 * İkos Sentetik Theme - Custom Styles
 * Additional styles and overrides
 * 
 * @package Ikos_Sentetik
 */

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Body Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Page Content Styles */
.page-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

.page-content blockquote {
    border-left: 4px solid var(--ikos-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--ikos-text-light);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--ikos-border);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--ikos-primary);
    color: var(--ikos-primary);
}

.pagination .page-numbers.current {
    background-color: var(--ikos-primary);
    border-color: var(--ikos-primary);
    color: var(--ikos-white);
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Form Validation Styles */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .cta-section,
    .mobile-menu {
        display: none !important;
    }
    
    .page-content {
        max-width: 100% !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--ikos-primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ikos-primary);
    color: var(--ikos-white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

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

::-webkit-scrollbar-track {
    background: var(--ikos-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--ikos-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ikos-primary-light);
}

/* Selection Color */
::selection {
    background-color: var(--ikos-primary);
    color: var(--ikos-white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 1rem 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .products-section,
    .features-section,
    .about-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-secondary {
        border-width: 3px;
    }
    
    .product-card {
        border: 2px solid var(--ikos-text);
    }
}

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