* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #202124;
}

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

.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 24px;
    padding: 8px 16px;
    flex: 1;
    margin-right: 12px;
}

.search-bar i {
    color: #5f6368;
    margin-right: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #202124;
}

.create-button {
    background-color: #1a73e8;
    color: white;
    border-radius: 24px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 14px;
    min-width: 110px;
    text-align: center;
}

.create-button:hover {
    background-color: #0d66d0;
}

.nav-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 8px;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    white-space: nowrap;
    padding: 12px 16px;
    font-weight: 500;
    color: #5f6368;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 24px 0 16px;
    color: #202124;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.app-card:hover {
    transform: translateY(-3px);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    height: 3em;
    line-height: 1.5em;
    overflow: hidden;
}



.app-rating i {
    color: #fbbc04;
    margin-right: 4px;
    font-size: 10px;
}

.no-games {
    text-align: center;
    padding: 40px;
    color: #5f6368;
}

/* Author cabinet specific styles */
.author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-button {
    background-color: #f1f3f4;
    color: #5f6368;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: #e0e0e0;
}

.author-rating {
    color: #1a73e8;
}

.author-rating i {
    color: #1a73e8;
}

.no-games {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 32px;
    text-align: center;
}

.create-first-game {
    display: inline-block;
    margin-top: 16px;
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-bar {
        font-size: 14px;
    }
    
    .search-bar input {
        font-size: 14px;
    }
    
    .create-button {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .container {
        padding: 12px;
    }
    
    .nav-tab {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .search-bar {
        margin-right: 8px;
    }
    
    .create-button {
        padding: 8px 10px;
        min-width: 90px;
        font-size: 12px;
    }
}
