/* ========================================
   ปุ่ม Call to Action สำหรับ Line OA
   ใช้สำหรับการซื้อของ จอง หรือติดต่อสอบถาม
   ======================================== */

/* ปุ่มหลักสำหรับการซื้อ/จอง */
.btn-cta-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-dark);
}

.btn-cta-primary:active {
    transform: translateY(-1px);
}

/* ไอคอน Line */
/* .btn-cta-primary::before removed to eliminate emoji */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ปุ่มรองสำหรับการสอบถาม */
.btn-cta-secondary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 13px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-dark);
    border-color: var(--primary-dark);
}

/* ปุ่มขนาดเล็ก */
.btn-cta-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
}

.btn-cta-small::before {
    font-size: 16px;
}

/* ปุ่มขนาดใหญ่ */
.btn-cta-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 60px;
}

.btn-cta-large::before {
    font-size: 20px;
}

/* ปุ่มแบบเต็มความกว้าง */
.btn-cta-full {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* ปุ่มแบบวงกลม (สำหรับไอคอน) */
.btn-cta-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cta-circle::before {
    font-size: 24px;
}

/* ปุ่มแบบมีเงาเพิ่ม */
.btn-cta-shadow {
    box-shadow: 0 6px 20px rgba(0, 195, 0, 0.4);
}

.btn-cta-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 195, 0, 0.5);
}

/* ปุ่มแบบมีเอฟเฟกต์เรืองแสง */
.btn-cta-glow {
    box-shadow: 0 0 20px rgba(0, 195, 0, 0.5);
}

.btn-cta-glow:hover {
    box-shadow: 0 0 30px rgba(0, 195, 0, 0.7);
}

/* ปุ่มแบบมีเส้นขอบเรืองแสง */
.btn-cta-border-glow {
    border: 2px solid #00C300;
    box-shadow: 0 0 10px rgba(0, 195, 0, 0.3);
}

.btn-cta-border-glow:hover {
    box-shadow: 0 0 20px rgba(0, 195, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-cta-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .btn-cta-small {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-cta-full {
        max-width: 250px;
    }
}

/* Animation สำหรับการโหลด */
.btn-cta-loading {
    position: relative;
    pointer-events: none;
}

.btn-cta-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Hover effect แบบ ripple */
.btn-cta-ripple {
    position: relative;
    overflow: hidden;
}

.btn-cta-ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-ripple:hover::after {
    width: 300px;
    height: 300px;
}