/**
 * 1-Tıkla Satın Al Component Styles
 */

/* Ayırıcı */
.qp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 500;
}

.qp-divider::before,
.qp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

/* Ana buton */
.qp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(79, 92, 204, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 92, 204, 0.06) 0%, rgba(79, 92, 204, 0.02) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.qp-btn:hover {
    border-color: var(--main-theme-color);
    background: linear-gradient(135deg, rgba(79, 92, 204, 0.12) 0%, rgba(79, 92, 204, 0.04) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 92, 204, 0.12);
}

.qp-btn-icon {
    color: var(--main-theme-color);
    font-size: 1.1rem;
}

.qp-btn-text {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

.qp-btn-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--main-theme-color);
}

/* Teşvik mesajı */
.qp-incentive {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(79, 92, 204, 0.04);
    border: 1px dashed rgba(79, 92, 204, 0.15);
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.qp-incentive-icon {
    color: var(--main-theme-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Overlay */
.qp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: qpFadeIn 0.2s ease;
}

@keyframes qpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Popup */
.qp-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 380px;
    width: 100%;
    padding: 32px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    animation: qpSlideUp 0.3s ease;
}

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

.qp-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.qp-popup-bolt {
    font-size: 2rem;
    color: var(--main-theme-color);
    margin-bottom: 8px;
    display: block;
}

.qp-popup-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.qp-popup-body {
    margin-bottom: 24px;
}

.qp-popup-item {
    text-align: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 16px;
}

.qp-popup-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--main-theme-color);
    background: rgba(79, 92, 204, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.qp-popup-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 8px 0 4px;
}

.qp-popup-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--main-theme-color);
    margin: 0;
}

.qp-popup-card {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 10px;
    background: rgba(79, 92, 204, 0.03);
    border-radius: 8px;
}

.qp-popup-card i {
    color: var(--main-theme-color);
}

/* Butonlar */
.qp-popup-actions {
    display: flex;
    gap: 10px;
}

.qp-popup-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--main-theme-color);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qp-popup-confirm:hover {
    background: #3d4ab8;
    transform: translateY(-1px);
}

.qp-popup-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: #fff;
    color: var(--gray-600);
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qp-popup-cancel:hover {
    background: var(--gray-100);
}

/* Loading */
.qp-popup-loading {
    text-align: center;
    padding: 20px 0;
}

.qp-popup-loading p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Sonuç */
.qp-popup-result {
    text-align: center;
    padding: 10px 0;
}

.qp-result-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.qp-result-success { color: var(--success); }
.qp-result-fail { color: var(--danger); }

.qp-result-msg {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.qp-result-sub {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* Dark mode */
.theme-dark .qp-btn {
    background: linear-gradient(135deg, rgba(139, 147, 224, 0.12) 0%, rgba(139, 147, 224, 0.05) 100%);
    border-color: rgba(139, 147, 224, 0.25);
}

.theme-dark .qp-btn:hover {
    border-color: var(--main-theme-color);
    background: linear-gradient(135deg, rgba(139, 147, 224, 0.2) 0%, rgba(139, 147, 224, 0.08) 100%);
}

.theme-dark .qp-btn-text { color: #e4e6f0; }

.theme-dark .qp-incentive {
    background: rgba(139, 147, 224, 0.05);
    border-color: rgba(139, 147, 224, 0.1);
    color: var(--gray-400);
}

.theme-dark .qp-popup {
    background: #1e2235;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.theme-dark .qp-popup-header h3 { color: #fff; }
.theme-dark .qp-popup-item { background: rgba(255,255,255,0.06); }
.theme-dark .qp-popup-type { color: #a5adff; background: rgba(139, 147, 224, 0.15); }
.theme-dark .qp-popup-name { color: #fff; }
.theme-dark .qp-popup-price { color: #a5adff; }
.theme-dark .qp-popup-card { background: rgba(255,255,255,0.06); color: #c8cce0; }
.theme-dark .qp-popup-card i { color: #a5adff; }
.theme-dark .qp-popup-cancel { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #c8cce0; }
.theme-dark .qp-popup-cancel:hover { background: rgba(255,255,255,0.12); }
.theme-dark .qp-result-msg { color: #fff; }
.theme-dark .qp-result-sub { color: #a0a4b8; }
.theme-dark .qp-popup-loading p { color: #c8cce0; }
.theme-dark .qp-divider { color: #8a8ea0; }
.theme-dark .qp-divider::before, .theme-dark .qp-divider::after { background: rgba(255,255,255,0.12); }
