/**
 * ÇevirKazan Pro - WooCommerce My Account Styles
 */

/* ===== MY COUPONS PAGE ===== */
.cevirkazan-my-coupons {
    padding: 20px 0;
}

.cevirkazan-my-coupons h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.cevirkazan-description {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

/* ===== EMPTY STATE ===== */
.cevirkazan-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 2px dashed #ddd;
}

.cevirkazan-empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.cevirkazan-empty-state p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.cevirkazan-empty-state p:last-child {
    font-weight: 600;
    color: #85354F;
}

/* ===== COUPONS GRID ===== */
.cevirkazan-coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* ===== COUPON CARD ===== */
.cevirkazan-coupon-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cevirkazan-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Aktif kupon */
.cevirkazan-coupon-card.active {
    border-color: #85354F;
}

.cevirkazan-coupon-card.active .coupon-header {
    background: linear-gradient(135deg, #85354F 0%, #a54566 100%);
}

/* Süresi dolmuş kupon */
.cevirkazan-coupon-card.expired {
    opacity: 0.6;
    border-color: #ccc;
}

.cevirkazan-coupon-card.expired .coupon-header {
    background: linear-gradient(135deg, #999 0%, #777 100%);
}

/* Kullanımı dolmuş kupon */
.cevirkazan-coupon-card.used-up {
    opacity: 0.5;
    border-color: #ddd;
}

.cevirkazan-coupon-card.used-up .coupon-header {
    background: linear-gradient(135deg, #aaa 0%, #888 100%);
}

/* ===== CARD HEADER ===== */
.coupon-header {
    background: linear-gradient(135deg, #85354F 0%, #a54566 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-icon {
    font-size: 48px;
}

.coupon-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.coupon-status.active {
    background: rgba(255, 255, 255, 0.3);
}

.coupon-status.expired,
.coupon-status.used-up {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== CARD BODY ===== */
.coupon-body {
    padding: 24px;
}

.coupon-label {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.coupon-discount {
    font-size: 32px;
    font-weight: 700;
    color: #85354F;
    margin-bottom: 20px;
}

/* ===== COUPON CODE ===== */
.coupon-code-container {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.coupon-code-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.coupon-code-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coupon-code {
    font-size: 20px;
    font-weight: 700;
    color: #85354F;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1;
}

.copy-coupon-btn {
    background: #85354F;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-coupon-btn:hover {
    background: #652839;
    transform: scale(1.1);
}

.copy-coupon-btn:active {
    transform: scale(0.95);
}

/* ===== CARD FOOTER ===== */
.coupon-footer {
    padding: 16px 24px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.coupon-footer > div {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}

.coupon-footer strong {
    color: #333;
    font-weight: 600;
}

.coupon-expiry {
    color: #85354F;
}

.coupon-min-amount {
    color: #666;
}

/* ===== COPY NOTIFICATION ===== */
.cevirkazan-copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #85354F;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(133, 53, 79, 0.4);
    font-weight: 600;
    z-index: 99999;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 2.7s;
    opacity: 0;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cevirkazan-coupons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cevirkazan-my-coupons h2 {
        font-size: 24px;
    }

    .coupon-header {
        padding: 16px;
    }

    .coupon-icon {
        font-size: 36px;
    }

    .coupon-body {
        padding: 20px;
    }

    .coupon-label {
        font-size: 18px;
    }

    .coupon-discount {
        font-size: 28px;
    }

    .coupon-code {
        font-size: 16px;
    }

    .cevirkazan-copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cevirkazan-my-coupons {
        padding: 10px 0;
    }

    .coupon-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .coupon-code-value {
        flex-direction: column;
        gap: 12px;
    }

    .copy-coupon-btn {
        width: 100%;
    }
}
