/*
 * Turuncu Fal - Responsive CSS
 * Mobile-friendly styles that ONLY affect mobile views, desktop remains unchanged
 */

/* Only apply general fixes to mobile screens */
@media (max-width: 991px) {
	html, body {
		overflow-x: hidden;
		width: 100%;
		position: relative;
	}

	img {
		max-width: 100%;
		height: auto;
	}
}

/* Mobile menu improvements */
@media (max-width: 991px) {
	.mobile-menu {
		width: 280px;
		z-index: 9999;
		right: -280px;
		transition: right 0.3s ease;
		position: fixed;
		top: 0;
		height: 100%;
		background-color: var(--dark-color);
		overflow-y: auto;
	}

	.mobile-menu.open {
		right: 0;
	}

	.mobile-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		z-index: 9998;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
	}

	.mobile-menu-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.mobile-menu-toggle {
		display: flex !important;
		flex-direction: column;
		justify-content: space-between;
		cursor: pointer;
		width: 30px;
		height: 24px;
		position: relative;
		margin-left: auto;
        margin-right:10px;
		z-index: 1001;
	}

	.mobile-menu-toggle span {
		display: block;
		width: 100%;
		height: 3px;
		background-color: #fff;
		border-radius: 3px;
		transition: all 0.3s ease;
	}

	.mobile-menu-toggle span:nth-child(1) {
		top: 0;
	}

	.mobile-menu-toggle span:nth-child(2) {
		top: 10px;
	}

	.mobile-menu-toggle span:nth-child(3) {
		top: 20px;
	}

	.header-inner {
		justify-content: space-between;
		padding: 15px 0;
		display: flex;
		align-items: center;
	}

	.main-menu {
		display: none;
	}

	.mobile-menu {
		display: block;
	}

	body.menu-open {
		overflow: hidden;
	}

	/* Move login/register buttons to mobile menu */
	.header-auth {
		display: none;
	}

	.mobile-auth {
		display: flex;
		flex-direction: column;
		margin-top: 20px;
		padding: 0 20px;
	}

	.mobile-auth-btn {
		margin-bottom: 10px;
		text-align: center;
		padding: 10px;
		border-radius: 5px;
	}

	.mobile-menu-close {
		padding: 10px;
		font-size: 24px;
		color: #fff;
		cursor: pointer;
	}

	.mobile-menu-header {
		padding: 15px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.mobile-logo {
		max-height: 40px;
	}

	.mobile-menu-items {
		padding: 20px;
		list-style: none;
		margin: 0;
	}

	.mobile-menu-items li {
		margin-bottom: 15px;
	}

	.mobile-menu-items li a {
		color: #fff;
		font-size: 16px;
		display: block;
		padding: 5px 0;
		transition: all 0.3s ease;
	}

	.mobile-menu-items li a:hover,
	.mobile-menu-items li a.active {
		color: var(--primary-color);
	}
}

/* Hero section fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.hero-section {
		padding: 30px 0;
		overflow: hidden;
		text-align: center;
	}

	.hero-section .row {
		display: flex;
		flex-direction: column;
	}

	/* Reorder elements for mobile */
	.hero-title {
		order: 1;
		font-size: 2rem;
		line-height: 1.3;
		margin-bottom: 20px;
	}

	.hero-section .col-lg-6:last-child {
		order: 2;
		margin-bottom: 20px;
	}

	.hero-subtitle {
		order: 3;
		font-size: 1rem;
		line-height: 1.5;
		margin-bottom: 20px;
	}

	.hero-cta {
		order: 4;
		margin-bottom: 20px;
	}

	.hero-secondary-cta {
		order: 5;
		flex-direction: column;
		align-items: center;
	}

	/* Pull title out of the hero-content div */
	.hero-section .container > .row {
		position: relative;
	}

	.hero-section .col-lg-6.hero-content {
		order: 3;
	}

	/* Clone and move title to top via JavaScript */
	.mobile-hero-title {
		display: block;
		margin-bottom: 20px;
		text-align: center;
	}

	/* Hide original title on mobile */
	.hero-section .col-lg-6.hero-content .hero-title {
		display: none;
	}

	/* Hero image and floating elements */
	.hero-image-wrapper {
		position: relative;
		width: 80%;
		margin: 0 auto 20px;
		padding: 0;
	}

	.hero-image {
		width: 100%;
		height: auto;
		display: block;
	}

	/* Hide floating elements on mobile */
	.hero-floating-elements {
		display: none !important;
	}

	.app-store-buttons {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20px;
		margin-left: auto;
		margin-right: auto;
		max-width: 300px;
		width: 100%;
		padding: 0 10px;
	}

	.app-store-link {
		margin: 0;
		padding: 0;
		flex: 0 0 30%;
		max-width: 100px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.app-store-button {
		width: 100%;
		height: auto;
		object-fit: contain;
		max-height: 40px;
		object-position: center;
	}

	.hero-secondary-cta .btn {
		margin-bottom: 15px;
		margin-right: 0;
		width: 100%;
		max-width: 250px;
	}
}

/* Featured tellers section fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.mystic-carousel-container {
		padding: 0 10px;
		width: 100%;
		margin: 0 auto;
	}

	.mystic-carousel-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding-bottom: 10px;
		margin: 0 -10px;
		width: calc(100% + 20px);
	}

	.mystic-carousel {
		display: flex;
		flex-wrap: nowrap;
		padding-bottom: 20px;
		gap: 15px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.mystic-carousel-item {
		min-width: 280px;
		max-width: 85%;
		margin-right: 0;
		scroll-snap-align: center;
		flex: 0 0 auto;
	}

	.fortune-teller-card {
		height: 100%;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	}

	.fortune-teller-info {
		padding: 15px;
	}

	.teller-name {
		font-size: 1.2rem;
		margin-bottom: 10px;
	}

	.teller-specialties {
		margin-bottom: 10px;
		flex-wrap: wrap;
	}

	.specialty-badge {
		margin-bottom: 5px;
		font-size: 0.7rem;
		padding: 3px 8px;
	}

	.teller-rating {
		margin-bottom: 10px;
	}

	.teller-bio {
		margin-bottom: 15px;
		font-size: 0.85rem;
		line-height: 1.4;
	}

	.mystic-carousel-controls {
		display: none;
	}
}

/* Wave divider fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.wave-divider {
		height: 50px;
		overflow: hidden;
	}

	.wave {
		height: 40px;
	}
}

/* Fortune types section fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.fortune-types-grid {
		margin: 0 -10px;
	}

	.fortune-type-card {
		margin-bottom: 20px;
	}

	.fortune-type-meta {
		flex-wrap: wrap;
		justify-content: center;
	}

	.meta-item {
		margin-bottom: 10px;
	}
}

/* How it works section - MOBILE ONLY */
@media (max-width: 767px) {
	.categories-row .col-lg-4 {
		margin-bottom: 30px;
	}

	.category-card {
		height: auto;
	}

	.step-item {
		padding: 15px;
	}
}

/* Testimonials Section - New Design */
/* Desktop styles first (3 cards) */
.testimonials-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.testimonials-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.testimonial-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: 0;
    padding: 10px;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0.01) 100%);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.5);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-rating {
    color: #ff6b00;
}

.testimonial-rating i {
    margin-right: 3px;
}

.testimonial-icon {
    font-size: 24px;
    color: rgba(255, 107, 0, 0.3);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0;
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.author-detail {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.author-detail a {
    color: #ff6b00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-detail a:hover {
    color: #ff8c3a;
}

.testimonial-controls {
    margin-top: 20px;
    display: flex; /* Always show controls */
    justify-content: center;
    gap: 20px;
}

.testimonial-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.8) 0%, rgba(255, 147, 64, 0.8) 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-nav:hover {
    background: linear-gradient(135deg, rgba(255, 127, 20, 0.9) 0%, rgba(255, 167, 84, 0.9) 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-indicators {
    display: flex; /* Always show indicators */
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators .indicator.active {
    background-color: #ff6b00;
    transform: scale(1.2);
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .testimonial-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonial-container {
        padding: 10px;
        overflow: hidden;
    }

    .testimonial-track {
        display: flex;
        grid-template-columns: none;
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .testimonial-item {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 10px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-content {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 16px;
    }

    .author-detail {
        font-size: 12px;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .testimonial-card {
        padding: 15px;
    }

    .testimonial-content {
        font-size: 13px;
    }

    .author-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-detail {
        font-size: 11px;
    }

    .testimonial-nav {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .testimonial-indicators .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Blog section - MOBILE ONLY */
@media (max-width: 767px) {
	.blog-section {
		padding: 40px 0;
		overflow: hidden;
	}

	.blog-grid {
		margin: 0;
		display: block;
	}

	.blog-grid .col-lg-4,
	.blog-grid .col-md-6 {
		width: 100%;
		max-width: 100%;
		padding: 0 15px;
		margin-bottom: 20px;
	}

	.blog-card {
		height: 100%;
		margin-bottom: 0;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	}

	.blog-image {
		height: 160px;
	}

	.blog-content {
		padding: 15px;
	}

	.blog-title {
		font-size: 1.1rem;
		margin-bottom: 10px;
		line-height: 1.3;
	}

	.blog-meta {
		margin-bottom: 10px;
	}

	.blog-meta span {
		font-size: 0.75rem;
	}

	.blog-excerpt {
		font-size: 0.85rem;
		line-height: 1.4;
		margin-bottom: 15px;
	}

	.blog-read-more {
		font-size: 0.85rem;
	}

	/* Specific fix for mistik-blog-card in the home page */
	.mistik-blog-card {
		margin-bottom: 20px;
		width: 100%;
		display: block;
	}

	.row > [class*="col-"] {
		margin-bottom: 20px;
	}
}

/* Footer responsive fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.footer {
		overflow: hidden;
		text-align: center;
	}

	.footer-top {
		padding: 40px 0 20px;
	}

	.footer-widget {
		margin-bottom: 30px;
		text-align: center;
	}

	.footer-logo {
		display: flex;
		justify-content: center;
		margin-bottom: 15px;
	}

	.footer-about-text {
		font-size: 0.9rem;
		line-height: 1.5;
		margin-bottom: 15px;
	}

	.footer-social h4 {
		margin-bottom: 10px;
		font-size: 1.1rem;
	}

	.footer-social ul {
		display: flex;
		justify-content: center;
		gap: 15px;
		margin: 0;
		padding: 0;
	}

	.footer-widget-title {
		margin-bottom: 15px;
		font-size: 1.1rem;
		text-align: center;
	}

	/* Center the divider below headings */
	.footer-widget-title::after {
		left: 50%;
		transform: translateX(-50%);
		margin: 0 auto;
	}

	.footer-links {
		text-align: center;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer-links li {
		margin-bottom: 8px;
		text-align: center;
		width: 100%;
	}

	.footer-links li a {
		font-size: 0.9rem;
		display: inline-block;
		padding: 5px 10px;
	}

	.app-description {
		font-size: 0.9rem;
		margin-bottom: 15px;
	}

	.app-store-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.app-store-links .app-store-link {
		max-width: 180px;
	}

	.footer-bottom {
		padding: 20px 0;
		text-align: center;
	}

	.copyright p {
		font-size: 0.85rem;
		margin-bottom: 15px;
	}

	.footer-bottom-links {
		margin-top: 0;
	}

	.footer-bottom-links ul {
		justify-content: center;
		padding: 0;
		margin: 0;
		gap: 10px;
		flex-wrap: wrap;
	}

	.footer-bottom-links ul li {
		margin: 0;
	}

	.footer-bottom-links ul li a {
		font-size: 0.8rem;
		padding: 5px;
	}
}

/* Social bar responsive fixes - MOBILE ONLY */
@media (max-width: 767px) {
	.social-bar {
		padding: 8px 0;
		display: block !important;
	}

	.social-bar-inner {
		display: flex !important;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 0 10px;
	}

	.contact-info {
		display: flex !important;
		justify-content: flex-start;
		align-items: center;
	}

	.info-item.email-item {
		display: none !important;
	}

	.info-item {
		margin-right: 0;
		font-size: 12px;
		white-space: nowrap;
		display: inline-flex !important;
		align-items: center;
	}

	.info-item i {
		margin-right: 4px;
	}

	.social-icons {
		justify-content: flex-end;
		display: flex !important;
	}

	.social-link {
		width: 28px;
		height: 28px;
		font-size: 14px;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
}

/* WhatsApp and phone buttons position fix for mobile */
@media (max-width: 767px) {
	.whatsapp-now {
		position: fixed;
		bottom: 80px;
		right: 20px;
		padding: 0;
		z-index: 9999;
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.telefon-now {
		position: fixed;
		bottom: 20px;
		right: 20px;
		padding: 0;
		z-index: 9999;
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.whatsapp-icon, .telefon-icon {
		width: 45px;
		height: 45px;
		border-radius: 50%;
		box-shadow: 0 4px 8px rgba(0,0,0,0.2);
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.whatsapp-icon {
		background-color: #25D366;
	}

	.telefon-icon {
		background-color: #FF6B00;
	}

	.whatsapp-icon i, .telefon-icon i {
		font-size: 20px;
		color: #fff;
	}
}

/* Fix for mystic carousel on mobile */
@media (max-width: 767px) {
	.mystic-carousel {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding-bottom: 20px;
	}

	.mystic-carousel-item {
		scroll-snap-align: start;
		flex: 0 0 auto;
		width: 85%;
	}

	/* Properly handle overflow in all sections on mobile only */
	.section-padding,
	.featured-tellers-section,
	.fortune-types-section,
	.how-it-works-section,
	.testimonials-section,
	.blog-section,
	.newsletter-section {
		overflow-x: hidden;
	}
}

/* Fix for any horizontal scroll issues - MOBILE ONLY */
@media (max-width: 767px) {
	.container {
		max-width: 100%;
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 575px) {
	.container {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* Fix main content padding for mobile */
@media (max-width: 767px) {
	.main-content {
		padding-top: 0 !important;
	}
}

/* Helper classes to fully hide elements on mobile */
@media (max-width: 767px) {
	.mobile-hidden {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		pointer-events: none !important;
	}

	/* Hide hero floating elements completely */
	.hero-floating-elements,
	.hero-floating-elements *,
	.floating-element,
	.floating-tarot,
	.floating-crystal,
	.floating-coffee,
	.floating-zodiac {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		pointer-events: none !important;
	}
}

/* Mobile responsive testimonial adjustments */
@media (max-width: 767px) {
    .testimonial-item {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 5px !important;
    }

    .testimonial-card {
        padding: 15px !important;
    }

    .testimonial-content {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .testimonial-header {
        margin-bottom: 10px !important;
    }

    .testimonial-track {
        gap: 10px !important;
    }

    .testimonial-nav {
        width: 36px !important;
        height: 36px !important;
    }

    .testimonial-wrapper {
        padding: 10px 0 !important;
    }

    .author-image {
        width: 40px !important;
        height: 40px !important;
    }

    .author-name {
        font-size: 14px !important;
    }

    .author-detail {
        font-size: 12px !important;
    }
}