/* Frontend Stylesheet for Klaim Kupon Cafe GI */

.kkcgi-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 600px;
    margin: 30px auto;
    color: #1e293b;
}

.kkcgi-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kkcgi-card:hover {
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
}

.kkcgi-logo-box {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kkcgi-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kkcgi-logo-placeholder {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
}

.kkcgi-cafe-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 8px 0 4px 0;
    line-height: 1.3;
}

.kkcgi-cafe-location {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.kkcgi-cafe-location code {
    background-color: #f1f5f9;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.kkcgi-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
}

.kkcgi-action-wrapper {
    margin: 20px 0;
}

/* Button Styles */
.kkcgi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.kkcgi-btn-primary {
    background: linear-gradient(135deg, #e01869 0%, #c41058 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(224, 24, 105, 0.35);
}

.kkcgi-btn-primary:hover {
    background: linear-gradient(135deg, #c41058 0%, #a30b47 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 24, 105, 0.45);
}

.kkcgi-btn-success {
    background: linear-gradient(135deg, #e01869 0%, #c41058 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(224, 24, 105, 0.35);
}

.kkcgi-btn-success:hover {
    background: linear-gradient(135deg, #c41058 0%, #a30b47 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 24, 105, 0.45);
}

.kkcgi-btn-outline {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    margin-top: 10px;
}

.kkcgi-btn-outline:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.kkcgi-btn.disabled,
.kkcgi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner animation */
.kkcgi-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: kkcgi-spin 0.8s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Result Box & QR Code Container */
.kkcgi-result-box {
    margin-top: 28px;
    padding: 24px;
    background: #f6f3ff;
    border: 1px solid #9264b5;
    border-radius: 14px;
    animation: kkcgi-fadeIn 0.4s ease-in-out;
}

@keyframes kkcgi-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kkcgi-success-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.kkcgi-coupon-code-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kkcgi-coupon-code-display {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
    background: #ffffff;
    border: 2px dashed #93c5fd;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.kkcgi-qr-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

#kkcgi-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#kkcgi-qrcode img {
    margin: 0 auto;
}

.kkcgi-qr-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 0;
}

.kkcgi-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Warning alert */
.kkcgi-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.kkcgi-alert-icon {
    font-size: 32px;
}

.kkcgi-alert-content strong {
    color: #92400e;
    font-size: 16px;
}

.kkcgi-alert-content p {
    margin: 4px 0 0 0;
    color: #b45309;
    font-size: 14px;
}