* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    direction: rtl;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: #4a90e2;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-btn {
    color: #ffffff;
    background: none;
    border: 1px solid rgba(74, 144, 226, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s;
}

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

.nav-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.music-btn {
    position: relative;
}

.music-btn.muted {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.music-btn.muted:hover {
    background: rgba(255, 107, 107, 0.1);
}

.music-btn i {
    transition: transform 0.3s ease;
}

.music-btn:hover i {
    transform: scale(1.1);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
}

.hidden {
    display: none !important;
}

/* PlayStation-style Interface */
.playstation-interface {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 200px);
    padding: 2rem 0;
    gap: 2rem;
}

/* Main Logo */
.main-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-logo i {
    font-size: 5rem;
    color: #4a90e2;
}

.main-logo h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header logo visibility control */
.logo.hidden-on-main {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logo:not(.hidden-on-main) {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}





/* Game Tiles Grid */
.game-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    height: 200px;
}

.game-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tile:hover::before {
    opacity: 1;
}

.game-tile:hover {
    transform: scale(1.05);
    border-color: #4a90e2;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.15);
}

.tile-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tile-content i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 0.5rem;
    display: block;
}

.tile-content span {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Games Display Screen */
.games-display {
    animation: fadeIn 0.5s ease;
}

.games-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    direction: rtl;
}

.back-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateX(-3px);
}

.current-category-title {
    font-size: 2rem;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.game-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.game-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.game-card p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.play-btn {
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

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

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.play-btn:active {
    transform: scale(0.98);
}

.play-btn.disabled {
    background: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.play-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* PlayStation Interface Animations */
.game-tile {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.game-tile:nth-child(1) {
    animation-delay: 0.1s;
}

.game-tile:nth-child(2) {
    animation-delay: 0.2s;
}

.game-tile:nth-child(3) {
    animation-delay: 0.3s;
}

.game-tile:nth-child(4) {
    animation-delay: 0.4s;
}

.game-tile:nth-child(5) {
    animation-delay: 0.5s;
}

.game-tile:nth-child(6) {
    animation-delay: 0.6s;
}







/* About Button */
.about-button-container {
    display: flex;
    justify-content: center;
}

.about-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.about-btn i {
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    animation: fadeIn 0.5s ease;
    padding: 2rem 0;
    text-align: center;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.back-to-home-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateX(-3px);
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-logo i {
    font-size: 4rem;
    color: #4a90e2;
    animation: pulse 2s infinite;
}

.about-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    opacity: 0.5;
}

.about-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--gray);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.large {
    max-width: 90%;
    max-height: 90vh;
}

.modal-content.extra-large {
    max-width: 95%;
    max-height: 95vh;
    width: 1200px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.1);
}

/* Auth Form Styles */
.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.auth-form a {
    color: #4a90e2;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Profile Styles */
.profile-content {
    text-align: center;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.profile-info p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 1.5rem;
    color: #4a90e2;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.action-btn.logout {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
}

/* Game Editor Styles */
.editor-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 75vh;
}

.editor-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input, .form-row select {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.form-group label {
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 600;
}

.editor-workspace {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.code-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-toolbar, .preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
}

.toolbar-btn {
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.toolbar-btn:hover {
    background: rgba(74, 144, 226, 0.4);
}

#gameCode {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 0 0 8px 8px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    min-height: 0;
}

#gameCode:focus {
    border-color: #4a90e2;
}

#livePreview {
    flex: 1;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 0 0 8px 8px;
    background: white;
    min-height: 0;
}

.editor-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-btn.delete {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #4a90e2;
}

.tab-btn.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Games Manager */
.games-manager {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.user-game-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-game-item:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
}

.user-game-icon {
    font-size: 1.5rem;
    color: #4a90e2;
    width: 40px;
    text-align: center;
}

.user-game-info {
    flex: 1;
}

.user-game-info h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.user-game-info p {
    margin: 0.25rem 0 0 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.user-game-stats {
    display: flex;
    gap: 1rem;
    color: #b0b0b0;
    font-size: 0.8rem;
}

.user-game-actions {
    display: flex;
    gap: 0.5rem;
}

.game-action-btn {
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.game-action-btn:hover {
    background: rgba(74, 144, 226, 0.4);
}

.game-action-btn.edit {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.game-action-btn.edit:hover {
    background: rgba(255, 193, 7, 0.4);
}

.game-action-btn.delete {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
}

.game-action-btn.delete:hover {
    background: rgba(255, 71, 87, 0.4);
}

/* Settings Form */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form input {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: white;
}

.settings-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Game Preview Styles */
.preview-content {
    height: 70vh;
}

#gamePreview {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    background: white;
}

/* Search Styles */
.search-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#userSearch {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

#searchResults {
    max-height: 300px;
    overflow-y: auto;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
}

.search-result-info h4 {
    margin: 0;
    color: #4a90e2;
}

.search-result-info p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Custom Games Grid */
.custom-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.custom-game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-game-card:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.custom-game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-game-icon {
    font-size: 2rem;
    color: #4a90e2;
}

.custom-game-info h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.custom-game-info p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.custom-game-author {
    color: #4a90e2;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.custom-game-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.custom-game-actions {
    display: flex;
    gap: 0.5rem;
}

.game-action-btn {
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.game-action-btn:hover {
    background: rgba(74, 144, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .playstation-interface {
        height: auto;
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .game-tiles {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        height: 300px;
        max-width: 100%;
    }

    .about-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .about-logo h1 {
        font-size: 2.5rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .main-logo i {
        font-size: 4rem;
    }

    .main-logo h1 {
        font-size: 3rem;
    }

    .current-category-title {
        font-size: 1.5rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .modal-content {
        padding: 1rem;
        max-width: 95%;
    }

    .modal-content.large {
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-content.extra-large {
        max-width: 95%;
        max-height: 95vh;
        width: auto;
    }

    .form-row {
        flex-direction: column;
    }

    .profile-actions {
        flex-direction: column;
    }

    .custom-games-grid {
        grid-template-columns: 1fr;
    }

    .editor-content {
        height: 60vh;
    }

    .editor-workspace {
        flex-direction: column;
    }

    .profile-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
    }

    .user-game-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-game-actions {
        width: 100%;
        justify-content: space-between;
    }

    .game-tiles {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        height: 450px;
        max-width: 100%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* MoogCredit Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Game Screens */
.game-screen {
    animation: fadeIn 0.5s ease;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.back-to-games-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-games-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateX(-3px);
}

/* Moogopoly Styles */
.moogopoly-board {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.board-center {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    min-width: 300px;
}

.board-center h3 {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.game-info {
    margin: 1.5rem 0;
}

.game-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.dice-btn {
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.dice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

#dice-result {
    font-size: 1.2rem;
    margin-top: 1rem;
    min-height: 30px;
}

.board-spaces {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.board-space {
    position: absolute;
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
}

.player-piece {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #4a90e2;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 10;
}

/* Moog Rush Styles */
.moog-rush-container {
    text-align: center;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.game-stats p {
    font-size: 1.1rem;
    font-weight: 600;
}

#rush-canvas {
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    background: #000;
    margin: 1rem 0;
}

.rush-controls {
    margin-top: 1rem;
}

.rush-controls p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.start-btn {
    background: linear-gradient(45deg, #4a90e2, #74b9ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    .game-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    #rush-canvas {
        width: 100%;
        max-width: 400px;
        height: 200px;
    }

    .board-center {
        min-width: 250px;
        padding: 1.5rem;
    }
}
