/* ========================================
   Hero Action Buttons Styles
   ======================================== */

.hero-action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: #1e293b;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
    flex: 1;
    max-width: 220px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 197, 253, 0.1) 100%);
}

.action-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

.action-btn:hover .btn-text {
    color: #3b82f6;
}

/* 語系特定樣式 */
.action-btn[data-lang="zh-TW"] {
    border-color: rgba(239, 68, 68, 0.2);
}

.action-btn[data-lang="zh-TW"]:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(252, 165, 165, 0.1) 100%);
}

.action-btn[data-lang="zh-TW"]:hover .btn-text {
    color: #ef4444;
}

.action-btn[data-lang="zh-CN"] {
    border-color: rgba(34, 197, 94, 0.2);
}

.action-btn[data-lang="zh-CN"]:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(134, 239, 172, 0.1) 100%);
}

.action-btn[data-lang="zh-CN"]:hover .btn-text {
    color: #22c55e;
}

.action-btn[data-lang="en"] {
    border-color: rgba(168, 85, 247, 0.2);
}

.action-btn[data-lang="en"]:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.1) 0%, 
        rgba(196, 181, 253, 0.1) 100%);
}

.action-btn[data-lang="en"]:hover .btn-text {
    color: #a855f7;
}

.action-btn[data-lang="ja"] {
    border-color: rgba(245, 158, 11, 0.2);
}

.action-btn[data-lang="ja"]:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.1) 0%, 
        rgba(253, 230, 138, 0.1) 100%);
}

.action-btn[data-lang="ja"]:hover .btn-text {
    color: #f59e0b;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero-action-buttons {
        gap: 15px;
        max-width: 600px;
    }
    
    .action-btn {
        min-width: 160px;
        max-width: 180px;
        padding: 15px 24px;
    }
}

@media (max-width: 768px) {
    .hero-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 25px;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        min-width: 140px;
        max-width: 160px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-action-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 18px;
        font-size: 14px;
        min-width: auto;
        flex: none;
    }
    
    .btn-icon {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}

/* 載入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-action-buttons.fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 點擊波紋效果 */
.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::after {
    width: 300px;
    height: 300px;
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
    .action-btn {
        background: linear-gradient(135deg, 
            rgba(31, 41, 55, 0.95) 0%, 
            rgba(17, 24, 39, 0.95) 100%);
        color: #f9fafb;
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .action-btn:hover {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.2) 0%, 
            rgba(147, 197, 253, 0.2) 100%);
        border-color: rgba(59, 130, 246, 0.6);
    }
    
    .btn-text {
        color: #f9fafb;
    }
    
    .action-btn:hover .btn-text {
        color: #93c5fd;
    }
}

/* 無障礙設計 */
.action-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.action-btn:focus:not(:focus-visible) {
    outline: none;
}

/* 高對比度模式 */
@media (prefers-contrast: high) {
    .action-btn {
        border-width: 3px;
        font-weight: 700;
    }
    
    .action-btn:hover {
        border-width: 3px;
    }
}
