/* Custom styles for the board game website - Original Simple Style */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* Simple Card Design */
.game-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background-color: #f97316;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #ea580c;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Online Game Styles */
.memory-grid {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 1rem;
}

.card-inner {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    cursor: pointer;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
}

.card-face-front {
    background-color: #fff;
}

.card-face-back {
    background-color: #f97316;
    color: white;
    transform: rotateY(180deg);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    /* slate-200 */
    color: #475569;
    /* slate-600 */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #cbd5e1;
    /* slate-300 */
    background-color: #f8fafc;
    /* slate-50 */
    color: #f97316;
    /* orange-500 */
}

.page-item.active .page-link {
    background-color: #f97316;
    /* orange-500 */
    border-color: #f97316;
    color: white;
}

.page-item.disabled .page-link {
    background-color: #f1f5f9;
    /* slate-100 */
    border-color: #e2e8f0;
    /* slate-200 */
    color: #94a3b8;
    /* slate-400 */
    cursor: not-allowed;
}