/**
 * CredDown Frontend Styles
 */

/* Kredi Bakiyesi Kartı Stili */
.creddown-balance-card {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease-in-out;
}
.creddown-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #2d3748;
}
.creddown-balance-card .creddown-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}
.creddown-balance-card .creddown-text {
    font-size: 14px;
    font-weight: 600;
}

/* Modern Popup Stilleri */
.creddown-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.creddown-popup-overlay.creddown-is-visible {
    opacity: 1;
    visibility: visible;
}
.creddown-popup-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.creddown-popup-overlay.creddown-is-visible .creddown-popup-content {
    transform: scale(1);
}
.creddown-popup-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #1a202c;
}
.creddown-popup-content p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}
.creddown-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.creddown-popup-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
}
.creddown-popup-button.primary {
    background-color: #4A90E2;
    color: white;
}
.creddown-popup-button.primary:hover {
    background-color: #357ABD;
}
.creddown-popup-button.secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}
.creddown-popup-button.secondary:hover {
    background-color: #cbd5e0;
}
.creddown-popup-confirmation {
    margin-top: 20px;
    text-align: left;
}
.creddown-popup-confirmation label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.creddown-popup-confirmation input {
    margin-right: 10px;
}

/* İndir Butonu Loading Stili */
.creddown-ajax-btn.creddown-loading {
    opacity: 0.7;
    position: relative;
    pointer-events: none;
}
.creddown-ajax-btn.creddown-loading::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    border-top-color: #fff;
    animation: creddown-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

/* --- CredDown Özel Buton Stilleri --- */

/* Butonların temel turuncu stili */
.creddown-login-required,
.creddown-ajax-btn {
    background-color: #f59e0b !important; /* Canlı bir turuncu renk */
    color: #ffffff !important;           /* Yazı rengi beyaz */
    border: none !important;             /* Kenarlığı kaldır */
    border-radius: 5px;                  /* Köşeleri hafif yuvarlak yap */
    font-weight: bold;                   /* Yazıyı kalın yap */
    padding: 12px 24px;                  /* İç boşluğu ayarla */
    transition: background-color 0.3s ease; /* Renk geçişini yumuşat */
}

/* Fare ile üzerine gelince (hover) butonun stili */
.creddown-login-required:hover,
.creddown-ajax-btn:hover {
    background-color: #d97706 !important; /* Daha koyu, belirgin bir turuncu */
    color: #ffffff !important;           /* Yazı rengi beyaz kalsın */
}

.astra-shop-thumbnail-wrap .ast-select-options-trigger {
    display: none !important;
}

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