/**
 * x_11qcassino 模板现代化美化样式
 * 提升视觉效果和用户体验
 */

/* ========== 全局优化 ========== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gold-gradient: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    transition: var(--transition-smooth);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Header 美化 ========== */
.header,
header {
    background: var(--dark-gradient) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav,
.navbar {
    padding: 1rem 0;
}

.logo-link img,
.navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.logo-link:hover img,
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ========== 按钮美化 ========== */
.btn,
button:not(.close):not(.navbar-toggler),
a.btn {
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn::before,
button::before {
    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:hover::before,
button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary,
.btn-success,
.cta-button,
.register-btn,
.login-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-success:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-warning,
.bonus-btn {
    background: var(--gold-gradient) !important;
    color: #1a1a2e !important;
}

.btn-warning:hover,
.bonus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 151, 30, 0.4);
}

/* ========== 卡片美化 ========== */
.card,
.game-card,
.feature-card,
.promo-card,
.bonus-card {
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.card:hover,
.game-card:hover,
.feature-card:hover,
.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-img-top,
.game-card img,
.promo-card img {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top,
.game-card:hover img,
.promo-card:hover img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Hero Section 美化 ========== */
.hero,
.hero-section,
#plataforma,
.main-banner {
    background: var(--dark-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-h1,
.hero h1,
.main-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.hero-description,
.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ========== 游戏网格美化 ========== */
.games-grid,
.best-games,
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.game-item,
.game-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.game-item::after {
    content: 'JOGAR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--primary-gradient);
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.game-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.game-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* ========== 特性区域美化 ========== */
.features,
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    transition: transform 0.6s ease;
}

/* ========== Footer 美化 ========== */
.footer,
footer {
    background: var(--dark-gradient);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
}

.footer-nav a,
.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after,
.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after,
.footer a:hover::after {
    width: 100%;
}

.footer-nav a:hover,
.footer a:hover {
    color: white;
    transform: translateX(5px);
}

/* ========== 负责任博彩区域美化 ========== */
.responsible-gaming,
.footer-legal-eeat .responsible-gaming {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1) 0%, rgba(234, 67, 53, 0.05) 100%) !important;
    border: 2px solid rgba(234, 67, 53, 0.3) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    backdrop-filter: blur(10px);
}

.licensing-info,
.footer-legal-eeat .licensing-info {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(66, 133, 244, 0.03) 100%) !important;
    border: 1px solid rgba(66, 133, 244, 0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* ========== 导航链接美化 ========== */
.nav-link,
.header-nav-links a {
    position: relative;
    padding: 8px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.nav-link::before,
.header-nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-link:hover::before,
.header-nav-links a:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* ========== 标签/徽章美化 ========== */
.badge,
.tag,
.label {
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ========== 输入框美化 ========== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-radius: 12px !important;
    border: 2px solid #e0e0e0 !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* ========== 加载动画 ========== */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ========== 响应式优化 ========== */
@media (max-width: 768px) {
    .hero-h1,
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ========== 特殊效果 ========== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
                0 0 40px rgba(102, 126, 234, 0.3),
                0 0 60px rgba(102, 126, 234, 0.1);
}

/* ========== 表格美化 ========== */
table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

thead {
    background: var(--primary-gradient);
    color: white;
}

tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* ========== 模态框美化 ========== */
.modal-content {
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* ========== 进度条美化 ========== */
.progress {
    border-radius: 10px;
    height: 8px;
    background: #e0e0e0;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 10px;
}
