/**
 * Turuncu Fal - Mystical How It Works Section
 * Bu dosya, "Nasıl Çalışır" bölümüne mistik efektler ekler
 */

/* Ana Bölüm Stilleri */
.how-it-works-section {
    position: relative;
    background: linear-gradient(135deg, #0c0c1d, #1a1a2e);
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

/* Mistik Arka Plan Efektleri */
.how-it-works-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.mystical-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(30px);
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.mystical-orb.orb-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    animation-duration: 25s;
    animation-delay: -5s;
}

.mystical-orb.orb-2 {
    top: 60%;
    right: 10%;
    width: 250px;
    height: 250px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.mystical-orb.orb-3 {
    bottom: 20%;
    left: 15%;
    width: 200px;
    height: 200px;
    animation-duration: 22s;
    animation-delay: -8s;
}

.mystical-orb.orb-4 {
    top: 30%;
    right: 20%;
    width: 180px;
    height: 180px;
    animation-duration: 28s;
    animation-delay: -15s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(var(--scale, 1.2));
        opacity: 0.1;
    }
}

/* Bölüm Başlığı */
.how-it-works-section .section-title {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 36px;
    margin-bottom: 15px;
    color: #FF6B00;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.how-it-works-section .section-subtitle {
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
}

/* Adım Kartları */
.how-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.how-step-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
    border-radius: 20px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.how-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.how-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.how-step-card:hover::before {
    opacity: 1;
}

/* Adım Numarası */
.step-number {
    position: relative;
    margin: 0 auto 15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FF6B00, #FF8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 107, 0, 0.4);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Adım İkonu */
.step-icon {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FF6B00;
    transition: all 0.3s ease;
    position: relative;
}

.step-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 107, 0, 0.3);
    animation: spin 15s linear infinite;
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 0, 0.1);
    animation: spin 30s linear infinite reverse;
}

.how-step-card:hover .step-icon {
    background: rgba(255, 107, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

/* Adım İçeriği */
.step-content {
    text-align: center;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.step-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Bağlantı Çizgileri */
.step-connector {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B00, transparent);
    z-index: 0;
    display: none;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF6B00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Mistik Parçacıklar */
.mystical-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: particleFade 3s ease-out forwards;
}

@keyframes particleFade {
    0% {
        transform: translate(0, 0) scale(0.2);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(0);
        opacity: 0;
    }
}

/* Mobil Seçici */
.how-method-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.method-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.method-button:hover, .method-button.active {
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 107, 0, 0.2);
    transform: translateY(-3px);
}

.method-button:hover::before, .method-button.active::before {
    opacity: 1;
}

.method-button.active {
    background: linear-gradient(135deg, #FF6B00, #FF8533);
    color: #fff;
    border-color: transparent;
}

.method-button i {
    margin-right: 8px;
}

/* Metot İçeriği */
.method-content {
    display: none;
}

.method-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Bölümü */
.how-cta {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B00, #FF8533);
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 0, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 10px;
}

/* Responsive Ayarlamalar */
@media (min-width: 992px) {
    .step-connector {
        display: block;
    }

    .how-step-card:last-child .step-connector {
        display: none;
    }
}

@media (max-width: 991px) {
    .how-steps-container {
        flex-direction: column;
        align-items: center;
    }

    .how-step-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .how-it-works-section {
        padding: 60px 0;
    }

    .how-it-works-section .section-title {
        font-size: 28px;
    }

    .how-it-works-section .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .how-method-selector {
        flex-wrap: wrap;
    }

    .method-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: -15px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 25px auto 15px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-description {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        padding: 50px 0;
    }

    .how-it-works-section .section-title {
        font-size: 24px;
    }

    .how-it-works-section .section-subtitle {
        font-size: 14px;
    }

    .how-step-card {
        padding: 25px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: -10px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 13px;
    }
}
