/**
 * Additional Styles
 * 
 * @package SeksiyonelKapi
 */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: 15px 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Animation Classes */
.feature-card,
.product-card,
.service-item,
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate-in,
.product-card.animate-in,
.service-item.animate-in,
.blog-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Single Product/Post Styles */
.single-product .product-header,
.single-post .post-header {
    margin-bottom: 40px;
}

.single-product .product-image,
.single-post .post-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
}

.single-product .product-content,
.single-post .post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.single-product .product-content h2,
.single-product .product-content h3,
.single-post .post-content h2,
.single-post .post-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-product .product-content p,
.single-post .post-content p {
    margin-bottom: 20px;
}

/* Archive Pages */
.archive-header {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.archive-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.archive-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none;
    }
}
