/* FAQ Page Styles */
.faq-container {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    background: transparent;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.faq-title {
    text-align: center;
    color: #6b34fa;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #ede9fe;
    width: 100%;
}

.faq-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.faq-section-title {
    color: #7c3aed;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.9375rem;
    padding-left: 0.625rem;
    border-left: 4px solid #6b34fa;
}

.faq-item {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 0.625rem;
    padding: 1rem;
    margin-bottom: 0.9375rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.faq-question {
    font-weight: bold;
    color: #5b21b6;
    margin-bottom: 0.625rem;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.faq-question::before {
    content: "Q:";
    color: #6b34fa;
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.faq-answer {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
    padding-left: 1.5rem;
}

.faq-answer::before {
    content: "A:";
    color: #7c3aed;
    font-weight: bold;
    margin-right: 0.5rem;
    display: inline-block;
}

.faq-contact {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 0.625rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.faq-contact h3 {
    color: #6b34fa;
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

.faq-contact p {
    color: #5b21b6;
    font-size: 0.9375rem;
    margin: 0.3125rem 0;
}

.faq-contact a {
    color: #7c3aed;
    font-weight: bold;
    text-decoration: none;
}

.faq-contact a:hover {
    text-decoration: underline;
}

/* Play Page Styles */
.play-top {
    width: 100%;
    min-height: 500px;
}

.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Detail Page Styles */
.game-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.game-loading img {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.game-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #ff0000;
}

.game-error button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #667C95;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.game-error button:hover {
    background-color: #4a5a6e;
}

/* Category Page Styles */
.category-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.category-loading img {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.category-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #ff0000;
}

.category-error button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #667C95;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.category-error button:hover {
    background-color: #4a5a6e;
}

/* Common Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles for FAQ */
@media (max-width: 768px) {
    .faq-container {
        padding: 0.625rem;
    }
    
    .faq-section {
        padding: 0.9375rem;
    }
    
    .faq-title {
        font-size: 1.25rem;
    }
    
    .faq-question {
        font-size: 0.9375rem;
    }
    
    .faq-answer {
        font-size: 0.875rem;
    }
}
