/**
 * May88 Theme Custom Styles
 */

/* Additional Custom Styles */

/* Hero Background Animation */
.hero-section {
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(245,245,245,1), transparent);
}

/* Feature Icons Animation */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233,69,96,0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Game Card Image Placeholder */
.game-card::before {
    content: '';
    display: block;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.game-card::after {
    content: '🎮';
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.game-card {
    position: relative;
}

.game-content {
    position: relative;
    z-index: 1;
    background: #fff;
}

/* FAQ Accordion */
.faq-question {
    position: relative;
    padding-right: 40px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    color: #e94560;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Navigation Dropdown */
.nav-menu li {
    position: relative;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #e94560;
    transform: translateY(-3px);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 20px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c73e54;
    transform: translateY(-5px);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Content Typography Enhancements */
.content-wrapper h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-wrapper h2 {
    border-left: 4px solid #e94560;
    padding-left: 20px;
    margin-left: -20px;
}

.content-wrapper h3 {
    color: #e94560;
}

/* Table Styles */
.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-wrapper th,
.content-wrapper td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content-wrapper th {
    background: #1a1a2e;
    color: #fff;
}

.content-wrapper tr:hover {
    background: #f5f5f5;
}

/* Blockquote Styles */
.content-wrapper blockquote {
    border-left: 4px solid #e94560;
    padding: 20px 30px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* List Styles */
.content-wrapper ul li {
    position: relative;
    padding-left: 25px;
}

.content-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e94560;
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Image Styles */
.feature-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.game-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.content-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Remove old game card placeholder */
.game-card::before {
    display: none;
}

.game-card::after {
    display: none;
}

.game-card {
    position: relative;
    overflow: hidden;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .content-wrapper h1 {
        font-size: 24px;
    }
    
    .content-wrapper h2 {
        font-size: 20px;
    }
    
    .content-wrapper h3 {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .cta-section {
        display: none;
    }
    
    .content-section {
        padding: 0;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
}
